cf/mirror

Inversion Counting

CF
911D1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3
1 2 3
2
1 2
2 3
Output
odd
even
Sample 2of 2
Input
4
1 2 4 3
4
1 1
1 4
1 4
2 3
Output
odd
odd
odd
even
911D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)