Difference between revisions of "1999 PMWC Problems"

(Problem I2)
(Problem T2)
 
(2 intermediate revisions by the same user not shown)
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]]
  
Line 161: Line 128:
 
== Problem T2 ==  
 
== Problem T2 ==  
  
 +
<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 T2|Solution]]
 
[[1999 PMWC Problems/Problem T2|Solution]]
  
Line 195: Line 196:
 
== Problem T6 ==
 
== Problem T6 ==
  
 +
<asy>
 +
size(4cm);
 +
pair A,B,C;
 +
A=(-5,0);
 +
B=(0-A.x,A.y);
 +
C=(A+B)/2+(0,10);
 +
draw(A--B--C--cycle);
 +
pair W,X,Y;
 +
W=intersectionpoint(B--(-5,5),A--C);
 +
Y = (-W.x, W.y);
 +
X = intersectionpoint(A--Y,B--W);
 +
draw(A--Y);
 +
draw(B--W);
 +
label("X",(X+C+W+Y)/4);
 +
label("5",(X+A+W)/3);
 +
label("8",(X+B+Y)/3);
 +
label("10",(X+A+B)/3);
 +
//Credit to dasobson for the diagram</asy>
 
[[1999 PMWC Problems/Problem T6|Solution]]
 
[[1999 PMWC Problems/Problem T6|Solution]]
  

Latest revision as of 20:21, 21 April 2014