通信妨害 (Communication Jamming)
Unrated
日本語
Language
Contribute a translation- Time limit
- 2000 ms
- Memory limit
- 256 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
4 3 3 1 1 1 3 2 2 3 1 1 1 1 2 1 1 3 2 1 4 2 2 1 3 2 2 3 3 -1 2 -2 1 -3 1 1 3 1 2 2 1 3 1 1 4 1 2 1 2 2 2 3 2
Sample output 1
-2
Sample input 2
6 4 5 4 2 1 4 1 3 3 5 2 1 1 1 1 2 1 1 3 2 1 4 2 2 2 4 1 5 4 1 6 4 2 1 3 2 4 3 3 -3 5 -1 2 -2 2 -1 4 -2 1 2 4 1 3 4 1 1 4 2 1 3 1 5 2 1 6 2 1 4 5 2 2 5 1 3 1 2 5 1 3 1 2 0
Sample output 2
0 -2 -1 -3
Notes
Tags
No tags yet