cf/mirror

Unfair Game

CF
2184D1600· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
7
4 1
4 2
4 3
4 4
4 5
16 5
16 1
Output
3
2
0
0
0
4
15
2184D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)