You are on page 1of 5

1

5 2002

( ):

1
.
, ,
, .
1.
.
2.

.
3.

, .
4.

.
5. ,

.
6. .
12
. (compiler)
(interpreter).
10
.
0 20. ( 0 20
).
1


;
i) >= 0 <= 20
ii) > 0 <= 20
iii) >= 20 <= 0
iv) >= 0 <= 20
5
.
; .

<0

(-1)
*

7
.
* ( DIV ) + ( MOD )
:
2

i)

= 10 = 5

ii) = -5 = 1
iii) = 1 = 5
6
2
, 10 ,
1 10 :
15, 3, 0, 5, 16, 2, 17, 8, 19, 1
:
i 1 9 _ 2
k((i+10) mod 10)+1
[i][k]
i, k, A[i], A[k]
_

i, k, A[i], A[k]
;
20
3

.
,
24 28 .
,
18 24 .

.
:
. ,

1 3 (1: ,
2: , 3: )
5
. :
i)
ii) ( ),
.
15
4
5 .
[5]
.
[5,12]
2001, i
i .
, :
.
6
.
2001
7
.
2001.

:

,
, Pascal, Basic, Turbo
Pascal, Quick Basic.