0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-30 19:36:27 +00:00
OI-codes/LibreOJ/2361/data/problem6.ans

8953 lines
19 KiB (Stored with Git LFS)
Plaintext

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