Wall
UnratedFunction
English
Language
Contribute a translation- Time limit
- 3000 ms
- Memory limit
- 256 MB (no extra memory)
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
10 3 1 3 4 91220 1 5 9 48623 2 3 5 39412
Sample output 1
0 0 0 39412 39412 39412 48623 48623 48623 48623
Sample input 2
10 6 1 1 8 4 2 4 9 1 2 3 6 5 1 0 5 3 1 2 2 5 2 6 7 0
Sample output 2
3 4 5 4 3 3 0 0 1 0
Tags
No tags yet
Source
This problem accepts only these languages.
C++20