cf/mirror

Replace and Keep Sorted

CF
1485B1200· pupil2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4 2 5
1 2 4 5
2 3
3 4
Output
4
3
Sample 2of 2
Input
6 5 10
2 4 6 7 8 9
1 4
1 2
3 5
1 6
5 5
Output
8
9
7
6
9
1485B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)