cf/mirror

Turtle and an Infinite Sequence

CF
1981B1300· pupil1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
9
0 0
0 1
0 2
1 0
5 2
10 1
20 3
1145 14
19198 10
Output
0
1
3
1
7
11
23
1279
19455
1981B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)