QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#113951#1139. Stationswlxhkk0 0ms0kbC++141.2kb2023-06-20 10:53:402023-06-20 10:53:41

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Stage 1: Program stations Runtime Error

Test #1:

score: 0
Stage 1: Program stations Runtime Error

input:

0
10
10 1000
4 5
9 0
2 6
5 2
8 3
1 4
8 1
6 0
3 7
3 1000
0 1
1 2
998 1000
166 178
393 452
389 179
622 429
892 866
872 18
899 227
835 637
587 769
504 386
369 577
65 441
523 17
803 221
878 321
637 892
696 473
16 146
840 322
495 986
353 275
330 585
831 402
719 810
704 830
780 940
53 901
894 911
394 482
...

output:


input:


output:


result:


Subtask #2:

score: 0
Stage 1: Program stations Runtime Error

Test #11:

score: 0
Stage 1: Program stations Runtime Error

input:

0
10
996 1000
0 1
2 0
1 3
4 1
5 2
6 2
7 3
3 8
4 9
10 4
11 5
12 5
6 13
14 6
7 15
7 16
17 8
18 8
19 9
9 20
21 10
10 22
23 11
24 11
12 25
26 12
27 13
13 28
14 29
30 14
15 31
15 32
16 33
34 16
35 17
17 36
18 37
38 18
39 19
40 19
41 20
42 20
43 21
44 21
45 22
46 22
23 47
48 23
49 24
24 50
25 51
52 25
26 ...

output:

996
0
995
484
740
485
229
1
994
867
739
612
483
356
228
101
931
868
804
741
676
613
549
486
420
357
293
230
165
102
38
2
993
962
930
899
866
835
803
772
738
707
675
644
611
580
548
517
482
451
419
388
355
324
292
261
227
196
164
133
100
69
37
17
978
963
947
932
915
900
884
869
851
836
820
805
788
77...

input:


output:


result:


Subtask #3:

score: 0
Stage 1: Program stations Runtime Error

Test #17:

score: 0
Stage 1: Program stations Runtime Error

input:

0
10
2 1000000
1 0
997 1000000
830 513
223 672
727 200
763 415
581 440
34 42
267 325
912 693
753 59
401 289
198 641
982 214
41 49
453 107
940 806
905 732
153 482
248 405
102 79
480 837
534 620
564 856
679 178
278 247
899 206
333 672
297 308
407 863
26 752
272 178
204 603
208 10
715 562
785 285
184 5...

output:


input:


output:


result:


Subtask #4:

score: 0
Stage 2: Program stations Runtime Error

Test #34:

score: 0
Stage 2: Program stations Runtime Error

input:

10
2 1000000000
0 1
10000
0 1 1
1 0 0
0 1 1
0 1 1
0 1 1
0 1 1
0 1 1
0 1 1
0 1 1
0 1 1
1 0 0
0 1 1
0 1 1
1 0 0
1 0 0
0 1 1
1 0 0
0 1 1
1 0 0
1 0 0
0 1 1
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
0 1 1
1 0 0
0 1 1
1 0 0
1 0 0
1 0 0
0 1 1
0 1 1
0 1 1
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
0 1 1
1 0 0
0 1 1
1 0 0
1 0 0
0 1 ...

output:

2
0
1
2
4
3
2
5
8
2
13
12
2
14
19
2
26
25
2
27
34
2
43
42
2
44
53
2
64
63

input:


output:


result:


Subtask #5:

score: 0
Stage 1: Program stations Runtime Error

Test #54:

score: 0
Stage 1: Program stations Runtime Error

input:

0
10
3 1000000000
1 0
2 1
998 1000000000
928 443
90 795
55 379
957 417
759 300
960 136
309 858
833 370
228 827
876 955
619 365
15 108
243 388
54 925
141 894
272 634
0 989
600 346
380 277
350 113
326 613
975 946
660 98
34 538
220 864
9 585
185 860
458 424
509 14
22 275
109 872
153 233
76 834
972 736
...

output:


input:


output:


result: