Skip to content

Landscape Generator

Unrated
English

Language

Contribute a translation
Time limit
4000 ms
Memory limit
2048 MB (no extra memory)
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

Landscape Generator, page 1

Landscape Generator, page 2

Examples

Sample input 1
20 13
H 12 13
D 5 18
R 13 14
R 8 16
H 2 3
V 10 19
V 3 13
R 8 13
V 3 10
D 5 18
V 11 12
R 1 6
R 14 19
Sample output 1
1
2
0
-3
-7
-9
-11
-9
-7
-6
-6
-5
-3
-4
-5
-4
-4
-3
0
0
Sample input 2
7 1
H 1 6
Sample output 2
1
2
3
3
2
1
0

Tags

No tags yet

Source