UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#80590#705. mmtFSYolanda1004576ms125788kbC++1.2kb2019-10-20 12:24:032019-10-20 12:24:05

answer


详细

小提示:点击横条可展开更详细的信息

Test #1:

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

input:

100
17 92 74 2 30 0 86 16 67 82 94 92 58 79 36 34 93 30 15 89 41 72 10 23 46 73 34 57 62 20 38 24 86...

output:

782
5014
5852
6772
13252
10492
23709
10753
20203
23349
27495
20203
29353
28191
38339
32857
38503
318...

result:

ok 100 lines

Test #2:

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

input:

1000
78 11 493 795 334 290 732 789 733 640 690 357 402 358 793 360 522 878 345 612 546 495 413 214 7...

output:

39156
44678
346936
504062
347693
570110
979746
1033544
1475688
1122921
1375099
1286342
1778957
20966...

result:

ok 1000 lines

Test #3:

score: 10
Accepted
time: 8ms
memory: 6008kb

input:

3000
49607665 30099286 94082962 59560876 15110499 6008011 15690094 98193781 54181910 23335220 982817...

output:

109566190
3066170
113429157
91336435
78530973
94986365
33388315
50847604
86724991
97779066
118899445...

result:

ok 3000 lines

Test #4:

score: 10
Accepted
time: 298ms
memory: 41796kb

input:

44937
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

0
0
1
1
4
3
8
8
12
13
22
17
28
31
36
36
51
47
64
61
70
77
98
85
103
112
125
124
151
138
167
167
184
...

result:

ok 44937 lines

Test #5:

score: 10
Accepted
time: 972ms
memory: 125396kb

input:

99777
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 3...

output:

0
0
1
1
5
3
11
10
16
17
34
19
42
47
52
48
82
65
105
87
101
119
171
115
155
180
203
186
259
194
275
2...

result:

ok 99777 lines

Test #6:

score: 10
Accepted
time: 341ms
memory: 48844kb

input:

50522
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 3...

output:

0
0
1
1
5
3
11
10
16
17
34
19
42
47
52
48
82
65
105
87
101
119
171
115
155
180
203
186
259
194
275
2...

result:

ok 50522 lines

Test #7:

score: 10
Accepted
time: 989ms
memory: 125788kb

input:

99878
121 60 53 58 95 27 97 123 118 164 103 29 115 224 184 231 209 27 175 39 114 129 154 84 218 153 ...

output:

14157
21177
26771
34376
45755
47840
61503
77762
83494
102765
109139
109762
122814
159012
175311
1912...

result:

ok 99878 lines

Test #8:

score: 10
Accepted
time: 339ms
memory: 48220kb

input:

50000
2830185 84283963 90685262 67634377 88973196 5763655 72539676 6080089 98004190 62454685 2080783...

output:

50113692
122688621
36416367
10565973
28840742
8063856
35936397
49148875
3547852
85949624
89625122
24...

result:

ok 50000 lines

Test #9:

score: 10
Accepted
time: 623ms
memory: 84060kb

input:

75000
57298754 58583395 17070241 72630154 27455084 71297111 50447424 66377991 10855524 60076656 5062...

output:

43310192
68144142
73802159
108442461
84862387
97967747
41628241
23076622
31075496
103511184
77845872...

result:

ok 75000 lines

Test #10:

score: 10
Accepted
time: 1006ms
memory: 125788kb

input:

100000
1278750 52052360 34773774 58512719 59646462 49506764 79088450 6740403 24534764 31943385 37001...

output:

106933257
5677968
116747121
7447239
4591475
31725363
103152986
65944319
24409498
21729134
75257303
6...

result:

ok 100000 lines

Extra Test:

score: 0
Extra Test Passed