QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#113952#1139. Stationswlxhkk0 2ms3708kbC++141.2kb2023-06-20 10:55:042023-06-20 10:55:07

詳細信息

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 2ms
memory: 3476kb

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:

10
0
6
1
5
2
7
8
4
3
9
3
12
10
11
998
13
790
984
907
158
312
719
717
835
844
737
637
861
508
208
868
678
39
244
642
470
612
121
558
105
547
263
385
313
64
1005
482
501
551
392
732
131
955
327
448
774
898
748
913
61
420
24
954
715
143
608
971
447
190
196
450
899
833
769
138
802
343
962
780
822
881
86...

input:

1
-1
0

output:


result:

FAIL Unexpected end of file - int32 expected (/opt/uoj/judger/uoj_judger/work/channel_2_answer.txt)

Subtask #2:

score: 0
Wrong Answer

Test #11:

score: 0
Wrong Answer
time: 2ms
memory: 3708kb

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:

1
-1
0

output:


result:

FAIL Unexpected end of file - int32 expected (/opt/uoj/judger/uoj_judger/work/channel_2_answer.txt)

Subtask #3:

score: 0
Stage 2: Program stations Runtime Error

Test #17:

score: 0
Stage 2: Program stations Runtime Error

input:

10
2 1000000
1 0
10000
1 0 0
1 0 0
0 1 1
1 0 0
0 1 1
0 1 1
1 0 0
0 1 1
1 0 0
1 0 0
0 1 1
0 1 1
0 1 1
1 0 0
1 0 0
0 1 1
1 0 0
1 0 0
0 1 1
1 0 0
0 1 1
1 0 0
0 1 1
0 1 1
1 0 0
0 1 1
0 1 1
1 0 0
1 0 0
1 0 0
0 1 1
1 0 0
1 0 0
1 0 0
0 1 1
1 0 0
1 0 0
0 1 1
0 1 1
1 0 0
0 1 1
1 0 0
1 0 0
0 1 1
1 0 0
0 1 1
1...

output:

2
0
1
997
998
260
348
709
170
848
397
280
808
980
464
941
13
683
756
770
38
10
157
93
215
377
907
353
912
55
663
604
688
334
121
987
172
828
437
322
800
885
957
645
45
213
696
252
204
704
538
519
387
920
862
942
849
633
847
631
43
599
439
492
705
714
692
566
141
102
310
75
598
452
997
712
977
567
99...

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
3
2
2
4
5
2
7
6
2
8
9
2
11
10
2
12
13
2
15
14
2
16
17
2
19
18

input:


output:


result:


Subtask #5:

score: 0
Stage 2: Program stations Runtime Error

Test #54:

score: 0
Stage 2: Program stations Runtime Error

input:

10
3 1000000000
1 0
2 1
7507
1 2 2
2 0 1
1 2 2
1 2 2
1 2 2
0 2 1
0 2 1
2 1 1
2 1 1
0 2 1
1 0 0
1 0 0
1 0 0
2 0 1
1 0 0
0 1 1
0 1 1
0 2 1
2 0 1
2 0 1
2 0 1
0 2 1
2 0 1
1 0 0
2 0 1
0 1 1
2 0 1
1 2 2
2 0 1
0 2 1
0 2 1
0 2 1
0 2 1
2 0 1
0 1 1
2 0 1
0 1 1
0 2 1
0 2 1
2 0 1
2 0 1
1 2 2
0 2 1
2 0 1
2 0 1
2...

output:

3
0
2
1
998
1000
731
59
258
361
930
216
432
9
635
909
556
19
541
583
341
913
936
438
974
706
841
275
181
188
969
889
375
83
218
30
374
211
309
630
770
679
539
299
42
994
649
418
331
172
621
429
507
771
842
760
962
685
973
795
751
512
168
821
801
89
571
672
552
724
963
214
494
619
306
992
810
379
343...

input:


output:


result: