cf/mirror

Ayoub's function

CF
1301C1700· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5
3 1
3 2
3 3
4 0
5 2
Output
4
5
6
0
12
1301C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)