Difference between revisions of "2001 PMWC Problems"

(Problem I3)
(Problem T3)
Line 113: Line 113:
 
== Problem T3 ==
 
== Problem T3 ==
  
 +
<asy>
 +
pair A = (0,4);
 +
pair B = (7,0);
 +
void drawvert(int xstart, int len)
 +
{
 +
draw((xstart,A.y)--(xstart,A.y-len));
 +
}
 +
void drawhori(pair start, int len)
 +
{
 +
draw(start--(start.x+len,start.y));
 +
}
 +
//draw verticals
 +
int[] verts = {4,4,4,2,4,3,4,4};
 +
for(int i = 0; i < verts.length; ++i)
 +
{
 +
drawvert(i,verts[i]);
 +
}
 +
//draw horizontals
 +
drawhori(A,7);
 +
drawhori(A - (0,1),7);
 +
drawhori(A - (0,2),4);
 +
drawhori((B.x-1,2),1);
 +
drawhori((0,1),2);
 +
drawhori((4,1),3);
 +
drawhori(origin,7);
 +
//labels
 +
label("$A$",A,NW);
 +
label("$B$",B,SE);
 +
//Credit to dasobson for the diagram</asy>
 
[[2001 PMWC Problems/Problem T3|Solution]]
 
[[2001 PMWC Problems/Problem T3|Solution]]
  

Revision as of 15:13, 20 April 2014