QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#35252#4002. Easy FixZhangYiDeWA 19ms35076kbC++145.4kb2022-06-14 20:26:102022-06-14 20:26:12

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 33724kb

input:

7
1 6 2 7 5 4 3
7
1 7
2 6
3 5
4 4
1 1
2 1
3 7

output:

7
6
6
7
7
6
8

result:

ok 7 lines

Test #2:

score: 0
Accepted
time: 9ms
memory: 32416kb

input:

5
5 3 1 2 4
3
3 1
2 5
3 3

output:

3
0
0

result:

ok 3 lines

Test #3:

score: 0
Accepted
time: 2ms
memory: 32748kb

input:

10
10 1 6 7 9 8 4 3 5 2
10
6 7
5 2
4 1
10 4
6 2
1 9
2 9
4 5
6 8
9 7

output:

12
7
13
8
7
15
9
11
11
12

result:

ok 10 lines

Test #4:

score: 0
Accepted
time: 4ms
memory: 32788kb

input:

20
3 4 19 18 5 6 20 12 9 13 1 10 8 7 17 16 2 14 11 15
20
19 9
20 6
1 14
11 15
12 10
20 15
10 3
20 1
16 7
8 19
3 17
9 2
20 14
20 2
20 9
2 4
12 4
9 15
7 16
9 4

output:

46
48
43
50
44
42
48
45
42
45
39
41
50
46
48
44
50
42
42
48

result:

ok 20 lines

Test #5:

score: 0
Accepted
time: 4ms
memory: 33768kb

input:

100
70 54 10 72 81 84 56 15 27 19 43 100 49 44 52 33 63 40 95 17 58 2 51 39 22 18 82 1 16 99 32 29 24 94 9 98 5 37 47 14 42 73 41 31 79 64 12 6 53 26 68 67 89 13 90 4 21 93 46 74 75 88 66 57 23 7 25 48 92 62 30 8 50 61 38 87 71 34 97 28 80 11 60 91 3 35 86 96 36 20 59 65 83 45 76 77 78 69 85 55
100
...

output:

1080
1083
1056
1056
1087
1058
1082
1085
1116
1088
1072
1084
1096
1094
1072
1092
1090
1102
1096
1084
1086
1057
1062
1102
1080
1086
1082
1082
1082
1088
1080
1086
1122
1104
1086
1084
1113
1088
1060
1097
1100
1084
1089
1089
1082
1115
1087
1082
1087
1092
1086
1080
1084
1085
1082
1107
1072
1092
1061
1069
...

result:

ok 100 lines

Test #6:

score: 0
Accepted
time: 4ms
memory: 33712kb

input:

150
100 27 33 124 22 137 14 109 35 92 54 69 67 96 97 3 19 98 120 28 36 16 84 135 20 9 141 62 48 87 103 18 34 76 122 138 50 1 26 70 117 134 72 121 40 17 142 82 91 53 118 37 111 15 149 60 104 93 46 73 126 47 140 59 132 144 143 78 71 38 85 68 74 31 102 4 139 2 65 45 25 7 29 150 131 21 146 130 148 11 89...

output:

2844
2818
2837
2818
2813
2796
2774
2849
2862
2821
2832
2846
2816
2840
2844
2826
2824
2818
2749
2830
2818
2822
2799
2826
2801
2826
2823
2828
2760
2824
2851
2818
2790
2850
2797
2880
2777
2779
2825
2824
2825
2818
2844
2825
2818
2818
2825
2834
2858
2834
2833
2842
2795
2842
2856
2802
2825
2836
2833
2804
...

result:

ok 109 lines

Test #7:

score: -100
Wrong Answer
time: 19ms
memory: 35076kb

input:

1001
683 346 384 352 291 367 447 360 490 102 779 900 781 642 299 293 619 742 834 434 817 171 341 561 122 471 145 90 769 457 882 256 525 509 338 41 851 269 96 630 751 297 347 687 903 57 80 771 393 921 82 300 580 579 507 660 463 551 578 902 626 33 927 260 822 670 116 210 349 301 166 631 390 395 860 75...

output:

121741
122016
121953
121923
122061
121986
121953
121867
121695
122378
122035
121961
121937
122668
122276
122063
122168
122565
122176
122037
122001
122599
121741
122053
122082
121891
121699
122031
122071
122077
122049
122065
122207
121927
122039
122050
122087
121807
121984
122029
121982
122033
122033...

result:

wrong answer 1002nd lines differ - expected: '122061', found: '122054'