cf/mirror

For Wizards, the Exam Is Easy, but I Couldn't Handle It

CF
2072D1300· pupil2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
9
7
1 4 3 2 5 3 3
6
1 4 3 2 5 3
8
7 6 5 8 4 3 2 1
10
1 1 1 5 1 1 5 6 7 8
2
1337 69
4
2 1 2 1
3
998 244 353
3
1 2 1
9
1 1 2 3 5 8 13 21 34
Output
2 7
2 4
1 8
4 6
1 2
1 4
1 3
2 3
5 5
2072D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)