cf/mirror

Count the Trains

CF
1690G2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
 
4 2
6 2 3 7
3 2
4 7
 
5 4
10 13 5 2 6
2 4
5 2
1 5
3 2
 
13 4
769 514 336 173 181 373 519 338 985 709 729 702 168
12 581
6 222
7 233
5 117
Output
3 4
4 4 2 3
5 6 6 5
1690G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)