cf/mirror

Vlad and an Odd Ordering

CF
1926E1500· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
11
7 1
7 2
7 3
7 4
7 5
7 6
7 7
1 1
34 14
84 19
1000000000 1000000000
Output
1
3
5
7
2
6
4
1
27
37
536870912
1926E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)