One thousand miles' trip begins with a step. |
Lao Tse (6-th Century B.C.) |
n m d11 d12 ... d1m d21 d22 ....d2m ........... dn1 dn2 ... dnm, where n and m represent the dimensions of the grid, and dij is the number associated to the target processor of the block of data transmitted by the processor in the (i, j) position, for any 1<=i<=n, 1<=i<=m.
1 5 5 2 4 3 1
Round 1 1 1 1 1 2 3 1 3 1 4 5 1 5 1 4 Round 2 1 1 2 1 3 5 1 4 1 3 Round 3 1 1 3 1 4 5 1 3 1 2 Round 4 1 1 4 1 5 5 1 2 1 1 4 1 4 1 3 2
"Grigore Moisil" High School, Iasi.
|
Line 1: N T Line 2: H(1,1) H(1,2) ... H(1,10) Line 3: H(2,1) H(2,2) ... H(2,10) ............................................. Line N+1: H(N,1) H(N,2) ... H(N,10)
YESif the student has the time to promote all the exams, or the message
NO Fwhere F is the maximum number of exams that the student can promote.
HOPES.TXT 3 150 1 15 27 29 46 56 59 65 84 87 5 17 22 28 37 43 60 77 87 102 11 29 49 63 69 70 75 80 95 109 REALITY.TXT NO 2 5.667 87 43
Politehnica University, Bucharest.
|