Difference between revisions of "2002 PMWC Problems"

(Problem T3)
(Problem T10)
Line 132: Line 132:
 
== Problem T10 ==
 
== Problem T10 ==
  
 +
<asy>
 +
size(8cm);
 +
void hexagon(pair p)
 +
{
 +
draw((p.x,p.y-1)--(p.x-sqrt(3)/2,p.y-.5)--(p.x-sqrt(3)/2,p.y+.5)--(p.x,p.y+1)--(p.x+sqrt(3)/2,p.y+.5)--(p.x+sqrt(3)/2,p.y-.5)--cycle);
 +
return;
 +
}
 +
for(int i = 0; i < 10; ++i)
 +
{
 +
for(int j = 0; j <= i; ++j)
 +
{
 +
hexagon((-sqrt(3)*i/2+sqrt(3)*j,0-3/2*i));
 +
}
 +
}
 +
//Credit to dasobson for the diagram</asy>
 
[[2002 PMWC Problems/Problem T10|Solution]]
 
[[2002 PMWC Problems/Problem T10|Solution]]

Revision as of 23:57, 19 April 2014