Difference between revisions of "1999 PMWC Problems"

(Problem T6)
(Problem I2)
Line 5: Line 5:
 
== Problem I2 ==
 
== Problem I2 ==
  
<asy>
+
 
void box(pair p)
 
{
 
real c = .3;
 
pair hvect=(c,0);
 
pair vvect=(0,c);
 
draw((p-hvect-vvect)--(p-hvect+vvect)--(p+hvect+vvect)--(p+hvect-vvect)--cycle,linewidth(0.9));
 
}
 
size(10cm);
 
real horiscale=1.9;
 
defaultpen(fontsize(10));
 
usepackage("amssymb");
 
string[][] array = {{"A","B","C","D","E","F","G"},{"$\Box$","$\Box$","$\Box$","$\Box$","$\Box$","$\Box$","$\Box$"},{"1","2","3","4","5","6","7"},{"13","12","11","10","9","8",""},{"","14","15","16","17","18","19"}, {"","..","..","..","..","20",""},{"","..","..","..","..","..",".."},{"..","..","..","..","..",".."}};
 
for(int i = 0; i < array.length; ++i)
 
{
 
for(int j = 0; j < array[i].length;++j)
 
{
 
array[i][j]="\textbf{" + array[i][j] + "}";
 
}
 
}
 
for(int i = 0; i < array.length; ++i)
 
{
 
for(int j = 0; j < array[i].length; ++j)
 
{
 
if(i==1)
 
{
 
box((horiscale*j,-i));
 
}
 
else{
 
label(array[i][j],(horiscale*j,-i));
 
}
 
}
 
}
 
//Credit to dasobson for the diagram</asy>
 
 
[[1999 PMWC Problems/Problem I2|Solution]]
 
[[1999 PMWC Problems/Problem I2|Solution]]
  

Revision as of 20:21, 21 April 2014