QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#333967#3349. Train Ticketslmq26052003TL 0ms0kbC++205.1kb2024-02-20 21:52:192024-02-20 21:52:21

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Time Limit Exceeded

input:

99
3 1
3 4
2
0 0
0
0 0
0
3 3
4 6
1
5 5
5
2 1
2
3 8
3 4
5
3 4
4
0 1
0
4 10
3 6 12
4 8
5
3 5 2
5 1
4
3 4 1
1 1
5
4 27
325 520 259
149 2
394
4 10 8
0 9
1
5 3 2
20 2
11
16 24
983 876 540 649 171 649 687 153 818 118 978 756 950 712 481
630 643 857 248 172 907 880 246 833 757 538 457 44 587
865 460 314 25...

output:

0
1
45
78
4832

result: