2005

 

1. .

100 1000000. n- (n ) , . , . . ϳ . , .

 

. ֳ .

 

. . .

 

. : 1203

: 2031 3120 5151

 

 

2. .

: (W), (H) (S) (. . 1). 1 1000. N (1<N<1000). , . , , (. . 2).

 

. 1 . 2

 

 

 

 

 

 

 

 

 

. , : S; W; H.

 

. .

 

. : 5 1 2 3 2 3 2 4 3 4 9 1 3 10 2 2

: 25

 

 

 

3. .

M N (3<M<1000, 3<N<1000) "*" , "" "". , "0" (). . , , , , , , , , . , , . : , , , . ³, ( ) .

 

. . , : , . .

. , , , , .

. : 7 8 . 3

00000000 00000000

000***00 000***00

00****00 00****00

0*****00 0*****00

0******0 0******0

0******0 0******0

00000000 00000000

 

: 2 4 2 6 5 6 5 7 6 7 6 2 4 2 4 3 3 3 3 4 (. . 3)

 

1.      " " 15

2.      " " 30

3.      " " 30

4.      , :

) " " 2

) " " 3

) " " 5

5.     

6.      85

 

1.        - "  \ Olimp2005_*", "*" , . , . 31̲ . : " \ Olimp2005__31̲"

2.        exe- ( ).

3.        .

4.        - - .

" ": range.exe, rangeIn.txt ( ), rangeOut.txt ( )

" ": rl.exe, rlIn.txt ( ), rlOut.txt ( )

" ": run.exe, runIn.txt ( ), runOut.txt ( )

5.        ( ), .