QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#802641#9862. Antivirusucup-team1878#TL 671ms8420kbC++234.3kb2024-12-07 14:16:022024-12-07 14:16:06

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 6248kb

input:

3
7 6 4
2 1
3 1
4 2
5 2
6 3
7 3
4 3 5 2 2 1 1
4 2
5 2
6 2
7 2
5 6 4
1 3
3 2
2 1
4 2
5 4
2 5
10000 10000 2 100 5
5 1000
4 1000
3 1000
4 1000
4 4 1
2 1
3 1
4 2
4 3
100 1 1 100
4 10

output:

2 3 4 4
5 100 102 202
10

result:

ok 9 numbers

Test #2:

score: 0
Accepted
time: 522ms
memory: 6256kb

input:

10000
10 15 10
5 4
4 8
8 1
9 1
3 1
7 10
2 4
2 8
10 9
8 1
3 2
8 9
6 3
9 6
9 7
109573034 995191779 629441974 818963404 427826881 504492389 571193150 526828914 397022133 261597684
10 372333138
2 502585557
6 146333017
6 522319681
10 272972971
9 958277860
6 81039902
10 30321248
6 459502525
6 753468360
10...

output:

109573034 109573034 109573034 109573034 109573034 109573034 109573034 109573034 109573034 109573034
302793882 302793882 302793882 302793882 392542446 392542446 392542446 392542446 392542446 392542446
14673922 527692254 527692254 527692254 527692254 527692254 527692254 527692254 527692254 527692254
3...

result:

ok 100000 numbers

Test #3:

score: 0
Accepted
time: 518ms
memory: 5976kb

input:

10000
10 20 10
7 4
6 1
5 1
4 6
10 1
8 7
10 6
10 7
6 5
5 7
7 3
3 10
9 5
8 1
2 3
2 7
5 1
10 5
6 9
4 10
714813381 27732963 16286651 18609639 333483693 125576688 108264816 25878619 235574069 240050850
7 567613610
3 232248158
3 248483123
2 509643192
2 429418762
8 740634945
5 452715309
3 823602753
5 40063...

output:

108264816 124551467 124551467 152284430 152284430 178163049 511646742 527933393 567997344 676262160
26807100 86723092 172308368 220150563 220150563 220150563 220150563 220150563 220150563 220150563
219954028 315305437 315305437 535259465 630610874 660050539 660050539 755829134 757689273 787417404
92...

result:

ok 100000 numbers

Test #4:

score: 0
Accepted
time: 115ms
memory: 5744kb

input:

1000
100 200 100
100 85
25 41
51 60
80 53
35 3
85 3
60 9
80 77
45 84
74 87
9 4
49 94
99 86
95 35
80 42
62 43
38 56
10 29
69 23
30 67
72 13
43 11
69 5
9 40
65 1
19 17
13 61
58 11
92 87
33 16
13 86
24 9
51 18
46 74
28 45
91 3
6 39
67 13
63 72
58 43
50 49
34 16
67 16
46 30
39 33
4 30
13 41
61 45
54 49
...

output:

64935453 70965771 71328539 84563196 101126032 182452343 183929386 189086513 189449281 198674817 212642620 458896124 486583003 502334898 504091090 504300836 533836295 535592487 552248176 557405303 598430396 604669787 615853847 621911960 628151351 628514119 637212958 640828512 670009009 670009009 6700...

result:

ok 100000 numbers

Test #5:

score: 0
Accepted
time: 128ms
memory: 6140kb

input:

100
1000 2000 1000
580 434
648 991
698 983
127 160
396 673
132 546
769 964
619 11
930 346
927 295
346 781
790 225
346 153
771 540
417 831
278 938
831 162
334 468
181 1000
430 926
825 836
111 425
454 139
664 213
541 742
82 324
910 567
937 941
933 54
478 602
465 223
90 800
678 250
446 455
15 87
682 22...

output:

147981 6057285 6763519 8324914 12134004 60851566 61199876 61783409 62637532 62718179 63255476 64828340 73262762 77883615 78817240 79419339 79446296 79502338 79951733 81341716 81847946 87020064 88412512 89728687 90965454 91926421 93371746 94054227 115092673 122095986 125048869 125323752 125381706 125...

result:

ok 100000 numbers

Test #6:

score: 0
Accepted
time: 671ms
memory: 8420kb

input:

10
10000 20000 10000
6196 1463
7511 8792
2131 9398
896 3914
2977 9715
6897 4298
2547 1947
6436 5395
7836 2909
2278 5947
3783 1405
3177 9748
6280 348
3913 6678
5250 5153
5850 3470
1235 1974
6303 8570
6185 2060
6435 3492
2333 2856
9193 8923
8003 4365
5334 9689
632 3118
591 4799
1339 3380
6453 5082
546...

output:

32265 618864 632948 737344 761241 789193 894444 1076258 1164521 1999194 2175573 3059944 3064809 3127704 3154368 3159912 3180311 3261891 3409778 3424562 3489319 3567017 3724551 3781325 3795404 4402433 4405941 4694408 4786783 4854528 4862930 4868817 8159854 8201632 8280925 8903595 8988190 9055965 9132...

result:

ok 100000 numbers

Test #7:

score: -100
Time Limit Exceeded

input:

1
100000 200000 100000
40517 64052
42036 17071
37780 52362
86808 24357
89653 74468
42769 89912
71292 44370
31818 78852
84553 7078
3258 9500
11388 52056
42673 78015
49296 65204
28466 57602
7547 75680
14931 13489
16195 25975
62425 71782
80892 83445
82033 10050
66265 86587
38331 88357
31078 89962
71594...

output:


result: