Difference between revisions of "1999 PMWC Problems"
(→Problem T6) |
(→Problem T2) |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
== Problem I2 == | == Problem I2 == | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[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]] | ||
Latest revision as of 20:21, 21 April 2014
Contents
- 1 Problem I1
- 2 Problem I2
- 3 Problem I3
- 4 Problem I4
- 5 Problem I5
- 6 Problem I6
- 7 Problem I7
- 8 Problem I8
- 9 Problem I9
- 10 Problem I10
- 11 Problem I11
- 12 Problem I12
- 13 Problem I13
- 14 Problem I14
- 15 Problem I15
- 16 Problem T1
- 17 Problem T2
- 18 Problem T3
- 19 Problem T4
- 20 Problem T5
- 21 Problem T6
- 22 Problem T7
- 23 Problem T8
- 24 Problem T9
- 25 Problem T10