0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-09 02:18:51 +00:00
OI-codes/BZOJ/1226/data/18.in

2406 lines
10 KiB (Stored with Git LFS)
Plaintext

4
600
15 1
3 1
1 1
12 0
7 2
2 0
7 0
16 1
10 2
0 1
6 2
12 2
2 1
3 1
12 2
6 0
12 1
5 0
4 2
15 2
7 2
5 1
9 0
1 0
4 0
9 2
8 1
11 2
2 1
14 1
1 2
1 2
15 0
13 1
0 0
4 2
7 1
7 2
14 2
4 0
16 0
5 0
9 0
14 1
1 0
16 2
1 1
13 1
9 2
6 1
12 2
7 1
0 2
15 0
1 0
16 0
2 1
0 0
0 0
3 2
11 1
12 0
6 2
13 0
8 0
13 2
14 2
5 2
8 2
0 1
11 0
2 1
15 0
5 0
9 1
14 1
5 2
3 2
11 2
14 1
13 0
8 2
12 2
13 1
3 1
3 1
4 0
12 2
9 0
4 0
7 0
0 2
7 1
6 2
8 1
0 1
8 2
6 1
2 1
9 2
0 0
13 1
16 2
10 2
7 1
0 2
12 2
12 1
7 0
2 1
3 0
10 0
0 1
4 1
10 0
10 1
7 0
5 1
16 2
2 0
14 1
14 1
7 0
2 0
1 1
8 1
7 2
15 2
15 0
14 2
11 0
3 2
9 0
13 0
16 0
10 0
13 2
1 0
2 1
7 0
11 2
13 0
8 0
10 0
11 0
0 2
11 0
15 0
16 2
6 1
7 0
16 0
9 1
15 2
2 1
15 1
8 2
8 2
10 1
0 0
13 1
16 1
15 0
13 2
0 2
14 1
16 1
6 0
3 1
7 1
16 2
15 1
12 1
11 0
16 0
12 1
16 2
14 1
13 0
7 0
1 0
6 1
14 2
13 2
5 1
2 1
15 0
11 2
4 2
15 1
9 2
2 1
9 1
3 0
4 2
13 2
12 0
14 0
7 0
11 1
8 0
10 2
1 0
16 2
7 2
4 2
7 2
6 2
10 1
12 0
1 2
7 0
1 0
15 2
9 1
4 0
10 1
11 2
15 2
15 0
3 2
5 2
2 1
8 2
15 2
7 1
5 2
3 2
12 1
3 0
3 0
1 0
13 2
13 0
0 1
1 2
7 1
11 0
5 0
5 2
10 0
13 2
2 2
7 2
5 0
12 2
1 2
1 0
1 2
14 1
8 0
4 0
10 2
10 2
9 2
4 1
0 0
0 2
16 2
6 2
12 1
11 1
9 2
16 2
11 1
2 0
6 2
15 0
12 2
11 1
13 1
16 2
9 1
9 0
2 0
0 2
8 1
8 0
10 1
16 0
15 2
14 2
9 2
1 1
6 1
1 0
5 2
15 1
4 0
14 0
15 1
12 0
12 2
3 1
4 1
3 1
16 2
8 2
7 1
9 2
13 2
15 2
15 1
1 0
12 2
13 2
15 0
5 2
10 1
0 0
0 0
11 2
3 2
16 1
8 0
1 0
7 2
2 1
0 0
15 1
15 1
9 0
0 2
12 0
2 1
0 0
9 2
7 2
16 1
1 2
4 0
7 0
1 1
3 0
2 1
2 2
12 1
7 0
10 0
2 1
7 2
1 1
11 0
3 2
3 1
12 2
2 2
11 2
12 1
2 2
14 1
4 1
13 0
10 1
12 0
13 2
15 0
13 2
0 0
13 0
0 2
3 0
10 0
11 2
10 2
3 2
6 2
3 0
3 2
5 0
1 1
8 0
10 2
3 0
0 2
2 1
11 2
9 2
10 1
5 2
16 0
0 2
11 1
8 2
3 0
14 1
8 1
9 0
13 2
13 0
13 0
9 0
13 0
3 2
2 2
12 1
10 2
16 2
4 2
13 2
5 2
4 1
15 1
16 0
12 2
13 1
8 2
11 2
9 2
12 2
9 1
6 0
5 0
14 2
7 0
0 1
9 0
4 1
6 2
3 1
6 2
9 0
4 0
15 0
15 0
12 0
0 1
3 0
4 1
16 0
5 0
12 0
15 1
0 1
15 2
0 0
9 1
0 0
2 2
10 1
11 2
3 1
3 2
12 1
4 0
3 1
9 1
1 1
11 2
11 0
5 0
9 1
4 0
8 2
0 0
5 0
15 0
12 2
6 1
15 2
5 0
16 1
14 0
3 1
15 2
9 2
13 0
11 2
2 2
6 0
13 1
9 2
5 1
6 2
0 0
5 0
13 2
12 1
8 0
10 0
9 1
8 2
11 0
14 0
13 2
14 2
6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
15 2
11 1
16 2
8 2
8 2
2 2
1 2
11 1
14 1
12 1
12 0
10 2
11 0
12 2
6 2
12 0
15 0
11 2
2 1
16 1
12 0
11 2
9 1
11 0
9 2
12 1
10 2
1 1
8 0
5 0
10 0
8 1
7 0
11 0
9 0
4 1
4 1
14 1
5 0
15 2
7 2
1 1
2 0
12 2
4 0
6 0
14 0
0 0
5 0
2 2
11 2
0 0
13 1
14 0
15 2
3 0
7 0
10 2
8 0
8 2
15 0
16 1
9 2
1 2
9 0
1 2
4 2
4 0
5 2
16 0
5 0
14 0
16 2
10 2
11 1
8 0
8 1
3 2
1 2
15 1
2 2
3 1
5 2
14 1
4 1
5 2
4 2
10 1
14 1
15 2
14 2
2 0
7 0
13 0
9 1
1 2
8 2
3 0
5 0
3 2
13 2
9 1
7 0
2 0
1 1
14 2
14 1
7 1
13 2
2 2
0 1
14 2
9 1
6 2
11 2
8 0
16 2
11 0
6 0
0 0
10 2
2 2
16 1
11 2
13 1
3 1
13 0
3 1
2 0
13 0
8 1
5 1
2 0
16 1
6 0
0 2
0 0
4 0
13 2
7 2
10 2
13 1
14 1
10 1
4 0
1 1
15 2
9 0
0 0
7 2
12 1
5 2
0 2
11 2
10 0
16 2
16 2
15 1
0 1
7 1
12 1
14 1
10 1
2 1
5 0
6 0
15 0
13 2
7 2
7 1
14 2
15 0
11 0
5 1
13 1
6 2
15 2
11 0
2 2
6 1
7 0
4 0
15 0
14 1
11 0
16 1
1 1
9 0
9 2
5 1
2 0
1 0
1 0
14 2
12 1
0 1
5 0
4 1
8 0
13 2
16 2
7 0
0 1
2 2
16 0
14 2
1 1
2 2
8 1
16 0
3 0
4 1
0 2
3 2
16 1
14 0
3 0
7 0
14 0
4 0
10 1
16 1
8 0
8 0
7 1
6 1
5 0
14 0
1 1
13 2
2 1
13 1
16 2
15 1
5 2
0 0
13 1
9 2
14 1
12 2
8 2
3 2
15 0
3 2
2 0
3 2
14 0
11 1
5 1
6 2
8 0
8 1
4 2
0 2
6 1
10 1
1 0
2 0
2 0
3 2
16 2
12 2
15 0
7 2
15 2
14 0
7 0
9 0
14 1
13 2
10 1
1 0
14 2
8 0
3 1
15 2
8 2
5 2
12 0
6 1
12 0
8 0
3 1
9 2
5 2
1 1
5 2
9 1
8 2
0 2
6 1
10 0
8 2
14 2
10 2
6 0
0 1
8 2
5 1
5 2
5 0
13 2
16 0
14 2
1 1
0 0
7 1
13 2
7 0
5 0
9 1
10 2
10 1
0 2
11 1
15 2
12 1
3 0
3 2
9 1
15 0
12 0
0 1
13 1
6 0
2 1
4 0
5 0
1 1
10 0
8 2
13 0
11 2
7 0
2 0
2 2
6 2
2 2
10 0
10 1
4 1
15 2
13 0
7 0
11 0
1 0
4 1
8 1
6 0
4 0
13 1
8 1
16 0
16 2
0 1
4 2
0 2
6 2
13 2
9 0
16 1
12 1
0 0
11 0
14 2
12 1
2 2
7 1
3 1
8 0
13 0
2 2
11 0
12 1
3 0
2 2
0 1
13 0
6 2
4 0
1 1
0 0
10 2
5 2
3 2
14 0
12 1
8 1
11 0
1 1
16 2
3 0
16 0
12 2
3 1
6 1
1 2
11 2
13 2
16 2
16 0
3 2
12 2
13 1
8 2
0 2
10 2
5 2
5 1
13 0
14 2
1 2
11 2
6 1
10 1
10 0
14 0
15 1
4 1
15 0
9 1
11 0
1 1
10 2
8 2
15 0
2 0
15 2
4 0
11 2
11 2
13 1
16 2
10 1
8 1
0 0
16 2
5 0
7 0
3 1
6 1
4 0
1 2
13 2
10 2
8 1
10 2
12 1
2 0
3 2
4 0
2 1
16 0
6 2
6 2
3 2
3 0
12 1
600
7 0
2 0
10 0
3 1
7 1
13 1
5 0
9 2
13 0
1 1
7 2
0 1
12 1
5 0
9 2
9 0
11 1
7 0
7 0
1 0
0 1
6 0
4 2
16 2
0 2
9 1
1 1
5 2
9 1
8 1
14 2
2 2
10 2
16 0
10 0
7 1
10 2
6 0
6 2
6 1
14 1
10 1
9 2
10 0
3 2
2 1
14 1
10 1
3 0
8 1
2 1
15 0
11 0
5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 2
15 2
8 0
15 2
4 1
11 0
9 0
5 0
1 1
13 0
15 1
13 0
3 0
12 1
4 2
10 0
13 1
13 2
16 0
7 0
14 0
16 0
5 1
6 0
10 1
1 2
15 2
6 2
13 1
14 1
14 2
14 0
5 2
13 1
14 1
11 2
5 2
1 0
5 1
11 2
1 1
2 1
14 2
11 0
16 1
4 1
4 0
9 2
10 1
8 1
3 2
8 0
9 0
10 0
8 0
15 0
7 0
6 1
14 0
10 0
12 2
6 1
9 1
0 0
1 0
0 0
5 2
15 2
11 1
7 0
9 1
11 2
4 0
6 0
14 2
6 2
15 0
14 1
13 2
14 1
15 1
15 0
5 1
5 0
12 2
15 1
8 0
16 1
9 1
0 2
12 0
14 1
6 0
10 1
14 0
15 2
11 2
5 1
3 2
13 2
15 2
6 2
0 2
16 0
7 2
14 0
3 2
6 2
12 1
1 2
3 2
2 0
16 0
6 2
11 1
11 1
2 1
1 1
9 0
15 1
7 1
2 2
9 0
7 0
4 1
0 0
5 1
15 1
14 2
0 2
3 0
1 2
14 0
11 0
10 0
12 0
1 2
5 1
16 0
8 1
15 1
16 2
16 1
13 1
9 2
1 0
7 0
13 2
2 1
16 1
14 1
4 1
4 2
13 1
16 2
4 1
9 2
14 2
10 2
8 0
14 0
8 1
6 0
8 2
15 2
14 2
9 1
11 1
14 0
2 2
2 1
13 2
0 1
8 1
1 2
13 1
1 2
1 1
6 0
2 2
2 0
9 1
11 2
11 2
15 0
8 0
6 0
4 0
15 2
10 0
3 0
10 0
14 1
13 1
2 2
16 1
13 0
9 2
16 0
9 1
9 0
9 2
7 0
11 2
14 2
9 1
10 0
3 1
3 1
13 0
15 0
0 0
10 1
13 1
14 0
0 1
13 1
14 1
6 2
12 2
15 2
10 2
1 0
16 2
3 0
12 0
6 2
13 0
14 2
8 0
8 1
6 0
7 2
1 0
16 2
8 0
12 2
1 2
13 1
2 1
3 1
8 0
14 0
9 1
9 1
6 1
6 0
15 1
3 2
6 0
16 0
0 2
9 1
8 0
6 2
5 2
8 1
14 1
12 2
6 1
16 2
5 1
2 2
10 1
16 1
13 1
7 2
12 1
14 2
4 1
12 2
5 0
11 1
14 1
14 1
9 2
1 2
12 1
8 1
2 0
6 2
9 1
8 0
16 0
7 2
4 1
4 2
0 1
15 2
15 2
12 2
600
0 2
9 2
10 2
16 2
2 2
14 2
2 1
6 1
12 2
4 0
6 1
9 0
8 0
15 2
7 1
4 1
8 2
0 0
5 2
15 1
13 2
12 0
4 1
11 2
14 0
11 1
6 0
16 0
16 2
15 2
12 1
5 1
4 0
5 1
10 0
2 1
8 1
15 0
5 1
12 1
6 0
13 1
7 0
9 2
6 2
3 1
16 2
0 1
9 0
15 0
7 1
1 0
6 1
12 2
15 0
8 0
8 0
13 1
14 0
8 1
15 0
7 2
16 0
16 2
3 0
6 2
11 0
3 0
6 1
9 0
5 1
0 0
4 0
0 1
2 0
2 1
9 2
15 2
8 0
11 2
8 2
2 1
11 2
6 0
14 2
6 1
7 2
13 2
10 1
7 2
7 2
3 1
0 1
7 1
16 2
16 2
10 2
0 0
15 0
10 2
1 0
15 1
13 0
15 0
3 1
16 0
11 0
14 0
2 1
10 1
7 2
1 2
8 0
10 0
13 2
10 0
9 0
2 2
2 2
0 1
14 0
6 0
7 2
13 2
11 0
3 0
4 1
10 0
15 2
11 0
16 2
6 1
4 0
6 0
9 1
8 0
0 2
11 0
2 2
4 2
13 0
14 1
2 0
1 1
11 1
12 2
14 1
0 0
0 0
3 0
5 0
8 0
14 2
12 0
1 2
15 2
1 1
10 2
11 2
12 2
1 0
5 0
9 1
8 1
0 0
11 2
5 1
7 1
11 2
15 1
1 0
8 2
6 0
12 1
2 0
16 1
2 0
9 1
8 2
14 2
13 1
0 1
0 1
9 0
0 0
8 1
4 1
2 2
11 2
7 1
5 0
8 1
12 0
16 2
9 1
9 0
14 0
4 0
12 1
6 2
9 1
1 1
13 1
11 1
8 1
3 0
13 2
13 0
4 0
16 0
4 2
1 0
14 1
3 1
11 1
5 0
6 1
13 2
2 1
4 1
0 2
1 0
14 2
8 0
7 1
12 1
7 0
11 2
2 0
8 0
16 1
7 2
13 0
13 1
11 2
3 1
13 1
7 0
4 1
2 1
5 1
2 0
9 0
12 1
14 1
9 2
1 2
12 2
5 2
14 1
0 1
14 1
5 1
9 0
8 2
11 1
11 1
9 0
3 2
8 2
7 0
11 2
7 2
5 1
15 2
6 2
9 1
6 2
7 2
4 2
0 1
10 1
9 1
0 0
9 0
13 2
9 1
3 0
14 1
13 0
1 0
10 2
2 1
0 2
14 2
11 2
1 0
14 1
9 1
10 0
13 0
16 1
13 1
14 0
13 2
10 0
11 2
2 2
3 0
16 0
1 0
9 1
8 2
7 0
1 1
1 1
1 2
10 2
12 0
13 1
12 0
13 0
15 0
15 1
9 1
12 2
16 2
6 1
2 2
10 2
7 0
2 0
3 2
3 2
14 1
2 0
13 1
7 1
7 2
16 2
11 2
6 2
5 1
4 0
3 1
1 2
7 0
0 0
5 2
11 0
16 0
2 0
4 0
16 2
8 1
3 0
7 0
6 1
5 2
9 1
16 0
11 2
15 0
13 0
12 1
10 0
14 1
14 2
16 2
14 0
0 2
16 1
2 0
11 1
15 1
5 0
10 0
0 2
13 0
4 0
7 0
11 1
8 2
10 0
11 0
0 0
10 0
15 1
7 2
4 0
1 0
5 1
2 1
3 2
10 0
9 0
12 1
11 0
1 2
10 2
9 2
14 0
10 0
0 0
13 2
8 1
0 0
11 0
14 0
13 2
15 2
7 0
14 0
11 2
4 0
3 0
13 0
0 2
7 0
0 2
2 1
13 2
9 2
15 2
3 2
7 0
6 1
1 0
1 1
9 0
15 0
5 0
16 2
11 2
7 1
10 0
4 0
9 0
2 1
1 0
15 1
10 0
0 1
14 2
6 1
13 0
1 2
6 0
3 1
6 1
2 0
0 0
9 0
9 1
1 2
5 1
7 2
15 0
6 1
3 2
13 0
7 1
1 2
6 1
2 0
11 1
9 2
0 1
10 1
6 0
10 1
1 2
12 1
4 2
13 0
15 0
11 0
6 1
2 2
4 2
1 1
0 1
9 1
11 2
12 2
5 0
13 1
2 1
2 1
16 1
7 1
13 0
6 0
14 0
2 2
4 0
4 1
0 2
6 2
16 0
7 0
16 1
15 2
9 1
2 2
9 0
16 2
4 1
16 2
16 0
13 2
11 1
4 1
16 2
7 1
2 2
1 0
10 1
11 0
1 1
8 1
14 1
13 2
10 1
6 1
15 0
16 1
16 0
3 1
15 2
8 2
10 2
10 0
6 2
2 1
5 0
0 1
1 1
9 0
15 0
7 1
2 2
15 1
4 1
5 2
13 0
8 0
1 2
7 0
12 0
12 0
14 1
13 1
5 1
0 1
7 1
3 2
5 2
13 0
0 0
7 0
2 1
9 0
1 2
13 1
13 0
15 1
6 0
3 2
9 2
9 1
7 2
9 2
1 0
11 1
2 2
9 0
0 0
13 2
1 0
9 0
6 1
11 0
5 0
5 0
13 2
4 2
12 2
16 0
16 1
8 1
9 1
13 2
8 1
13 2
15 1
7 1
2 2
6 0
14 1
16 0
3 0
2 1
0 1
15 2
7 2
10 2
3 0
3 2
13 1