Beech Tree
UnratedFunction
English
Language
Contribute a translation- Time limit
- 1500 ms
- Memory limit
- 2048 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
4 2 -1 0 0 0 0 1 1 2
Sample output 1
0 1 1 1
Sample input 2
18 3 -1 0 0 0 1 1 1 2 2 3 3 3 4 4 5 10 11 11 0 1 2 3 1 2 3 1 3 3 2 1 1 2 2 1 2 3
Sample output 2
0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Sample input 3
7 2 -1 0 1 1 0 4 5 0 1 1 2 2 1 1
Sample output 3
0 1 1 1 1 1 1
Tags
No tags yet
Source
This problem accepts only these languages.
C++20