͠ Р Π '02

16 2002

7-8 ( C)

 

1.

 

n (n ,1<=n<=10). . . WAY.EXE, , , .

 

. n. , , , , 0 1, , , . , .

 

. , . , , . , , 0.

 

:

 

 

5 3 3 0

1 2 0 1 4 3 1 2 1

1 3 0 1 3 0

1 4 1 2 3 0

1 5 0 1 3

2 3 0

2 4 0

2 5 1

3 4 1

3 5 0

4 5 0

1 3


͒02

16 2002

7-8 ( C)

 

2.

 

, . .

 

let it bee

 

l, i b 1, t 2, e 3., . , - . FREQ.EXE, N - .

let it bee

mississippi river

frequencies of texts

- i, 5

 

. N (2 < N < 10000). N , 255 .

 

- . , .

 

.

 

 

3 i 5

let it bee

mississippi river

frequencies of texts

 


'02

16 2002

7 8 ( C)

 

3.

 

DIGIT.EXE, K ( - ) K- 123456789101112131415...

K , .

 

.

 

:

 

15

 

:

 

2