cf/mirror

Dreamoon Likes Sequences

CF
1329B1700· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
10
1 1000000000
2 999999999
3 99999998
4 9999997
5 999996
6 99995
7 9994
8 993
9 92
10 1
Output
1
3
5
11
17
23
29
59
89
0
1329B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)