Splitstream
Unrated
English
Language
Contribute a translation- Time limit
- 3000 ms
- Memory limit
- 2048 MB (no extra memory)
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
200 2 2 S 1 2 3 M 3 2 4 4 99 4 100
Sample output 1
100 99
Sample input 2
100 3 6 S 1 4 2 S 2 3 5 M 3 4 6 6 48 6 49 6 50 6 51 6 52 5 25
Sample output 2
47 98 49 51 53 100
Sample input 3
2 3 3 S 1 2 3 S 3 4 5 M 5 2 6 3 1 5 1 6 2
Sample output 3
2 none none
Tags
No tags yet