cf/mirror

Berserk Monsters

CF
1922D1900· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
5
3 4 7 5 10
4 9 1 18 1
2
2 1
1 3
4
1 1 2 4
3 3 4 2
Output
3 1 0 0 0
0 0
1 1 1 0
1922D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…