UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#75004#713. 魔术Teal10016765ms157892kbC++1.3kb2019-09-29 17:43:252019-09-29 17:43:27

answer


详细

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

Test #1:

score: 5
Accepted
time: 19ms
memory: 157588kb

input:

18 13
9 16839
8 17358
2 1712
2 3893
4 1349
0 3539
2 16927
5 199
12 3897
0 10141
6 14423
1 13451
9 15...

output:

39606
39606
52692
39606
53949
39606
39606
65704
46015
39606
39606
39606
39606
39606
39606
39606
3960...

result:

ok 18 lines

Test #2:

score: 5
Accepted
time: 19ms
memory: 157596kb

input:

500 85
0 3411
0 818
0 2466
15 6463
15 1981
5 5780
40 4534
40 13359
45 17595
30 8069
35 5544
0 11889
...

output:

4102
4102
4102
4102
4102
4102
4102
4102
4102
4102
4102
4102
4102
4102
4102
4102
4102
4102
4102
4102
...

result:

ok 500 lines

Test #3:

score: 5
Accepted
time: 16ms
memory: 157596kb

input:

500 84
70 7335
28 19301
56 14904
63 12887
49 12710
14 13512
56 3532
3 18898
63 3479
77 16828
28 9963...

output:

231118
231118
231118
231118
231118
231118
231118
2129
231118
231118
231118
231118
231118
231118
2311...

result:

ok 500 lines

Test #4:

score: 5
Accepted
time: 31ms
memory: 157600kb

input:

500 100
11 15544
35 6362
40 7613
18 15451
6 9267
17 12590
4 19794
67 14873
34 2448
18 6949
11 5871
8...

output:

36906
36906
36906
36906
36906
36906
36906
36906
36906
36906
36906
36906
36906
36906
36906
36906
3690...

result:

ok 500 lines

Test #5:

score: 5
Accepted
time: 45ms
memory: 157724kb

input:

9090 34
0 2713
0 1396
0 19179
0 18835
0 14913
0 12206
0 6173
0 15544
0 7811
0 11386
0 1614
0 7918
0 ...

output:

-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
-33
...

result:

ok 9090 lines

Test #6:

score: 5
Accepted
time: 71ms
memory: 157740kb

input:

9855 97
0 7660
0 4345
0 1719
0 4045
0 15776
0 13927
0 11313
0 12499
0 10857
2 9654
2 13777
0 11453
0...

output:

20184763
20184763
20184763
20184763
20184763
20184763
20184763
20184763
20184763
19437913
19217840
2...

result:

ok 9855 lines

Test #7:

score: 5
Accepted
time: 68ms
memory: 157716kb

input:

8253 92
6 10204
66 12071
81 17957
90 11234
21 6116
56 13171
0 17622
75 3129
41 3260
13 404
64 17771
...

output:

1431
1431
1431
1431
1431
1431
1431
1431
1431
1431
1431
1431
1431
1431
1431
1431
1431
1431
1431
1431
...

result:

ok 8253 lines

Test #8:

score: 5
Accepted
time: 62ms
memory: 157696kb

input:

7000 99
69 13
31 2000
59 3000
69 49
81 11130
3 14949
69 15
12 17087
59 8000
1 17999
80 8000
83 8000
...

output:

166992
364328
331328
166992
166992
166992
166992
166992
166992
166992
166992
166992
166992
166992
16...

result:

ok 7000 lines

Test #9:

score: 5
Accepted
time: 72ms
memory: 157724kb

input:

8976 97
1 9855
2 12516
0 18802
1 9404
1 19709
1 8969
1 14632
1 3799
2 19463
1 17689
1 17050
2 8882
1...

output:

218393
218393
218393
218393
218393
218393
218393
218393
218393
218393
218393
218393
218393
218393
21...

result:

ok 8976 lines

Test #10:

score: 5
Accepted
time: 80ms
memory: 157744kb

input:

10000 100
30 10184
3 15
52 8000
51 13183
68 18400
2 15520
90 17588
93 15023
33 11899
3 2
3 7
64 1958...

output:

8245
8245
8245
8245
8245
8245
8245
8245
8245
8292
8245
8245
8245
8245
8245
8245
8245
8245
8245
8245
...

result:

ok 10000 lines

Test #11:

score: 5
Accepted
time: 319ms
memory: 157736kb

input:

10000 500
64 19868
274 16759
355 8000
94 18075
337 9296
221 8000
96 14903
441 9516
368 13132
276 130...

output:

872690
872690
872690
872690
872690
872690
872690
872690
872690
872690
872690
872690
872690
872690
87...

result:

ok 10000 lines

Test #12:

score: 5
Accepted
time: 268ms
memory: 157720kb

input:

8866 488
1 16115
1 18415
1 14981
2 6527
1 3876
2 1836
1 19511
1 13250
1 12427
2 13192
1 19740
3 8136...

output:

18225083
18225083
18225083
18225083
18225083
18225083
18225083
18225083
18225083
18225083
18225083
1...

result:

ok 8866 lines

Test #13:

score: 5
Accepted
time: 793ms
memory: 157804kb

input:

14000 910
0 2467
0 10786
0 13453
0 8156
0 5128
0 11234
0 18263
0 9573
0 1766
0 5109
0 15009
0 16316
...

output:

2424170
2424170
2424170
2424170
2424170
2424170
2424170
2424170
2424170
2424170
2424170
2424170
2424...

result:

ok 14000 lines

Test #14:

score: 5
Accepted
time: 1202ms
memory: 157804kb

input:

14000 1392
58 2606
1160 3469
754 2899
841 3332
1276 17366
667 3925
290 18287
348 18713
986 1126
1363...

output:

-608
-608
-608
-608
-608
-608
-608
-608
-608
-608
-608
-608
-608
-608
-608
-608
-608
-608
-608
-608
...

result:

ok 14000 lines

Test #15:

score: 5
Accepted
time: 1345ms
memory: 157768kb

input:

12000 1844
538 12954
915 8668
1374 1606
30 14027
1064 14402
127 3158
1099 13390
367 14563
1054 16787...

output:

44195
44195
44195
44195
44195
44195
44195
44195
44195
44195
44195
44195
44195
44195
44195
44195
4419...

result:

ok 12000 lines

Test #16:

score: 5
Accepted
time: 2381ms
memory: 157892kb

input:

20000 1880
219 2000
121 1000
1255 8000
850 13492
234 14
1463 17898
1674 15404
1269 18687
1046 8000
2...

output:

4077930
5017930
4062075
4062075
4062075
4062075
4062075
4062075
4062075
4062075
4062075
4062075
4062...

result:

ok 20000 lines

Test #17:

score: 5
Accepted
time: 2537ms
memory: 157888kb

input:

20000 1998
206 20000
206 20000
206 20000
206 20000
206 20000
206 20000
206 20000
206 20000
206 20000...

output:

9970019001
9970019001
9970019001
9970019001
9970019001
9970019001
9970019001
9970019001
9970019001
9...

result:

ok 20000 lines

Test #18:

score: 5
Accepted
time: 2386ms
memory: 157892kb

input:

20000 1887
261 443
261 10460
261 13571
261 1736
261 6031
261 3264
261 10535
261 11160
261 3840
261 1...

output:

147933430
147876640
147876640
147876640
147876640
147876640
147876640
147876640
147876640
147876640
...

result:

ok 20000 lines

Test #19:

score: 5
Accepted
time: 2524ms
memory: 157888kb

input:

20000 2000
2 17583
1 6726
3 12707
1 18710
1 247
3 953
1 6505
1 8926
1 4480
2 14740
2 17091
1 13589
2...

output:

416869323
416869323
416869323
416869323
417101793
417331820
416869323
416869323
416869323
416869323
...

result:

ok 20000 lines

Test #20:

score: 5
Accepted
time: 2527ms
memory: 157888kb

input:

20000 2000
2 10983
0 16396
2 5295
2 14575
0 5625
1 2857
1 10927
1 8991
0 16485
1 7468
1 11042
2 6151...

output:

986611288
986611288
986611288
986611288
986611288
986611288
986611288
986611288
986611288
986611288
...

result:

ok 20000 lines