UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#74945#713. 魔术suwakow10016576ms158496kbC++1.4kb2019-09-29 14:56:442019-09-29 14:57:13

answer


Details

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

Test #1:

score: 5
Accepted
time: 0ms
memory: 1236kb

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: 0ms
memory: 4268kb

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: 3ms
memory: 4264kb

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: 0ms
memory: 4272kb

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: 28ms
memory: 39756kb

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: 64ms
memory: 45332kb

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: 55ms
memory: 38124kb

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: 46ms
memory: 32852kb

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: 51ms
memory: 41472kb

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: 61ms
memory: 46044kb

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: 302ms
memory: 61256kb

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: 267ms
memory: 54068kb

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: 790ms
memory: 107108kb

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: 1221ms
memory: 111300kb

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: 1330ms
memory: 95564kb

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: 2388ms
memory: 158496kb

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: 2533ms
memory: 158492kb

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: 2388ms
memory: 158492kb

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: 2533ms
memory: 158496kb

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: 2516ms
memory: 158496kb

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