QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#306239#9. 简单回路ahihi123440 38ms5760kbC++145.6kb2024-01-16 16:08:082024-01-16 16:08:09

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 10
Accepted
time: 0ms
memory: 3716kb

input:

100 1 10
68 1
13 1
48 1
51 1
30 1
90 1
74 1
79 1
80 1
63 1
10
73 1
84 1
10 1
44 1
3 1
16 1
17 1
47 1
49 1
94 1

output:

0
0
0
0
0
0
0
0
0
0

result:

ok 10 lines

Test #2:

score: 10
Accepted
time: 2ms
memory: 5320kb

input:

1000 2 10
468 2
177 1
597 1
396 1
548 2
279 1
601 1
349 1
453 2
217 2
100
954 1
468 1
427 2
948 1
739 2
605 2
177 1
20 2
506 1
778 2
141 1
621 1
273 1
203 2
584 2
718 2
371 2
973 2
892 2
374 2
585 2
419 2
953 2
347 2
575 2
353 2
830 1
196 1
603 2
630 2
144 2
84 2
566 1
598 2
749 1
878 1
322 1
250 2
...

output:

16238
0
775
18044
36018
1580
0
3120
1558
39294
4935
7580
280
338
432
32994
528
10044
31428
525
407
759
16544
68
567
168
38930
380
794
10730
4608
7728
540
2
37148
33794
1118
924
1548
2119
26918
34250
39618
34100
1134
39420
343
39248
495
35244
23288
5980
0
1134
35894
108
205
39800
29088
6783
2744
6960...

result:

ok 100 lines

Test #3:

score: 10
Accepted
time: 0ms
memory: 5436kb

input:

1000 2 10
378 2
63 1
276 2
245 2
826 1
422 1
634 1
970 1
707 1
386 1
100
987 1
262 2
913 1
201 1
685 1
969 2
382 1
460 1
45 1
535 2
54 2
16 2
436 2
668 1
136 1
210 1
660 2
956 1
743 1
549 2
228 2
967 2
624 2
465 1
135 1
854 1
593 1
359 2
941 1
459 1
456 2
763 2
558 2
116 2
38 2
187 2
108 2
749 1
911...

output:

221
221
4872
5934
1071
0
12
6574
765
11074
432
736
2758
1292
7884
4998
1196
1690
2952
10668
2640
282
1818
7224
7848
3220
6840
1494
3220
6438
6018
3472
10200
6784
912
7068
6120
3192
4930
2338
2508
910
2640
120
276
3192
3820
5022
306
4120
2394
8160
4056
8778
420
6550
1007
861
3780
672
0
232
7638
5124
...

result:

ok 100 lines

Test #4:

score: 10
Accepted
time: 2ms
memory: 5412kb

input:

1000 3 10
186 3
140 3
410 1
639 1
836 2
399 2
432 3
712 1
946 3
958 3
100
203 3
895 1
351 1
503 2
991 1
61 2
760 1
647 3
70 3
75 1
522 2
539 3
417 1
53 2
404 1
467 2
283 1
313 2
793 3
290 2
410 1
827 1
572 1
534 3
765 2
977 1
97 3
797 3
966 3
404 2
479 1
653 3
212 2
164 2
960 1
655 1
304 1
182 1
190...

output:

774407976
694095038
666138398
204700661
487361334
79350260
823916526
764051786
649505956
109016625
819157802
869272506
187719766
93956822
405866989
762991904
313225905
177696788
482536746
637310259
0
626821887
869378231
769919477
251726603
475569128
292349487
564212025
952435308
73133171
62595819
36...

result:

ok 100 lines

Test #5:

score: 0
Wrong Answer
time: 4ms
memory: 5484kb

input:

1000 5 10
230 1
368 1
815 1
540 3
496 4
860 4
892 1
183 2
175 2
704 1
100
365 1
79 5
154 1
775 4
451 2
382 2
641 2
509 2
613 4
629 2
24 3
628 4
438 2
894 5
386 3
588 5
742 2
700 2
470 5
333 4
347 3
824 2
98 2
946 4
359 4
199 3
903 1
13 2
545 4
718 5
158 3
462 5
15 3
138 5
101 3
525 5
394 2
282 3
566...

output:

998770599
918856191
127602012
987401747
346090446
584567518
190128778
60999193
680171567
889306659
193872095
525733565
6538196
632902657
398653583
502406351
770011418
754246113
161990272
997000061
810360415
482184113
649829943
613635188
215441702
240409324
124402627
462948909
645265545
168239092
232...

result:

wrong answer 1st lines differ - expected: '255313133', found: '998770599'

Test #6:

score: 0
Wrong Answer
time: 15ms
memory: 5760kb

input:

1000 6 10
459 1
653 6
840 4
256 3
298 1
841 2
749 1
30 5
155 2
534 5
100
703 1
169 2
577 3
818 1
784 5
520 3
106 5
52 4
38 1
533 1
729 4
88 4
586 5
828 6
547 1
194 2
74 4
448 3
673 6
778 1
180 3
612 1
814 6
784 6
658 3
969 3
350 5
606 2
257 1
753 3
309 4
480 4
355 4
33 2
47 4
195 3
282 4
867 5
226 4...

output:

605435265
903436510
945978882
324285515
101397755
839566026
15608428
413686809
387020566
367741612
559697389
221231249
305738143
664607436
193915144
311281800
823107654
817824802
69936238
889050004
407977526
110694002
447458401
748548095
718396218
103343646
273474832
841313738
510760222
295860930
22...

result:

wrong answer 1st lines differ - expected: '999278415', found: '605435265'

Test #7:

score: 0
Wrong Answer
time: 34ms
memory: 5524kb

input:

1000 6 10
322 5
8 2
165 5
590 3
823 6
171 1
987 1
130 2
474 3
838 5
10000
854 4
329 1
324 2
361 4
479 4
657 6
27 1
121 3
57 5
790 4
81 1
246 3
720 5
917 4
430 6
506 3
129 3
752 2
119 6
382 1
146 4
233 3
420 5
20 1
413 5
925 5
466 4
682 5
632 4
128 4
574 1
503 4
543 1
274 3
273 5
742 2
399 4
36 3
237...

output:

589697352
119625282
815468811
355766876
285449686
634103139
633067880
556112264
58348334
382270675
51199174
252456940
284974645
196739786
725571142
765121510
6436309
242480150
69917557
42780149
243424060
477720010
714263736
286775599
734433662
73363166
120420752
535904655
452752001
616118706
7194970...

result:

wrong answer 1st lines differ - expected: '595188785', found: '589697352'

Test #8:

score: 0
Wrong Answer
time: 34ms
memory: 5520kb

input:

1000 6 10
454 6
42 2
861 3
46 2
592 2
220 1
641 1
415 4
687 3
803 5
10000
646 2
362 3
870 5
523 5
589 4
984 1
981 1
361 4
496 5
584 2
271 1
707 1
111 5
714 3
855 4
793 5
943 2
459 2
422 2
194 6
404 6
786 3
12 5
33 6
628 3
199 1
87 2
882 4
207 2
890 5
121 5
769 2
611 2
398 5
869 6
479 6
926 1
952 4
3...

output:

126767330
566530512
230879223
962435498
504201637
270771950
310089220
863403685
305676226
170064136
492667780
792675288
257442383
469919515
918280922
375134759
164089510
838201006
888850183
274475833
77256920
484692685
308211534
383590992
846267668
710705526
976847398
606813342
991153818
413306202
7...

result:

wrong answer 1st lines differ - expected: '907977256', found: '126767330'

Test #9:

score: 0
Wrong Answer
time: 38ms
memory: 5524kb

input:

1000 6 10
855 4
342 2
897 3
652 6
279 2
715 3
439 1
582 6
711 1
249 3
10000
581 2
907 2
221 6
92 2
355 3
342 2
130 5
820 6
90 2
802 1
803 1
87 3
170 5
553 4
432 2
891 1
523 2
519 4
174 6
933 6
796 3
691 6
982 5
871 1
430 6
230 2
133 6
271 4
442 6
268 6
452 5
656 2
502 3
14 3
248 2
470 2
710 5
954 5
...

output:

538254080
246456841
174283296
534003705
688281069
294856529
934775385
499979113
939662790
233830809
647200766
234273771
671822504
805648812
403235663
451154202
720536757
740505720
215768493
271449011
676435077
205910853
545186531
397075240
320845842
398557379
979860813
726424550
813517089
173216138
...

result:

wrong answer 1st lines differ - expected: '55066393', found: '538254080'

Test #10:

score: 0
Wrong Answer
time: 34ms
memory: 5472kb

input:

1000 6 10
959 3
380 5
181 5
388 6
749 5
342 5
944 1
918 3
870 1
753 4
10000
383 4
321 3
646 1
893 4
776 3
664 2
518 5
234 1
114 6
639 1
764 1
207 1
877 3
273 5
764 1
799 5
385 6
314 3
982 6
784 6
819 5
83 6
651 4
221 3
355 1
829 4
144 6
862 3
786 2
385 6
857 4
53 4
55 4
710 4
186 2
735 2
878 3
955 5...

output:

259465804
18202616
437450546
999055674
921836386
108866728
474077066
148846744
679653387
904718950
993254728
500667934
83608944
309760525
993254728
819805844
901169422
899463891
84260871
70419894
465727085
630399416
228020320
977134730
423730328
125332897
640528345
240026531
30224167
901169422
54081...

result:

wrong answer 1st lines differ - expected: '933292809', found: '259465804'