Skip to content

防壁 (Walls)

Unrated
日本語

Language

Contribute a translation
Time limit
3000 ms
Memory limit
256 MB
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

防壁 (Walls):公式日本語問題文 1ページ

防壁 (Walls):公式日本語問題文 2ページ

防壁 (Walls):公式日本語問題文 3ページ

防壁 (Walls):公式日本語問題文 4ページ

Examples

Sample input 1
4 4
0 3
4 4
2 7
8 11
6
4
3
8
Sample output 1
5
10
1
7
Sample input 2
7 11
12 39
22 23
5 38
6 47
10 43
0 50
18 46
38
19
15
1
12
29
29
0
6
40
6
Sample output 2
34
178
13
6
18
0
36

Notes

Tags

No tags yet

Source