cf/mirror

Reverse Sort Sum

CF
1659D1900· candidate master2s256 MB⌨ stdin/stdout

Examples

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