UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#99449#1428. 骑士zsq259100783ms52096kbC++1.4kb2020-02-23 13:53:062020-02-23 13:53:06

answer


Details

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

Test #1:

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

input:

5
799600 3
551723 5
704668 5
849165 3
367471 4

output:

2200488

result:

ok single line: '2200488'

Test #2:

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

input:

10
803980 3
269804 8
477697 5
25308 5
805330 3
233776 3
134324 2
991243 6
993237 1
237826 6

output:

3161960

result:

ok single line: '3161960'

Test #3:

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

input:

10
414757 5
141992 6
869989 9
783002 2
325736 10
40603 4
703556 6
831848 5
314650 5
293203 1

output:

3603152

result:

ok single line: '3603152'

Test #4:

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

input:

50
12279 11
921156 21
191994 37
247138 19
901160 20
845688 20
493797 18
931349 47
82512 50
666775 35...

output:

17473898

result:

ok single line: '17473898'

Test #5:

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

input:

60
608409 39
118862 12
855484 12
75310 38
219456 51
848292 49
240927 35
179416 48
272045 1
280135 51...

output:

19676724

result:

ok single line: '19676724'

Test #6:

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

input:

100
224155 30
583616 9
820831 83
999930 73
938417 49
769564 46
907632 6
60744 51
645626 83
679105 66...

output:

31408831

result:

ok single line: '31408831'

Test #7:

score: 10
Accepted
time: 1ms
memory: 11444kb

input:

3000
37572 2204
209127 2645
294602 2330
48176 1109
147354 2903
762544 1627
846554 1071
271784 1107
3...

output:

945988956

result:

ok single line: '945988956'

Test #8:

score: 10
Accepted
time: 4ms
memory: 11472kb

input:

10000
166896 5900
399108 171
994061 6385
719082 8586
900825 4483
898615 3052
427655 8247
59390 497
4...

output:

3166214665

result:

ok single line: '3166214665'

Test #9:

score: 10
Accepted
time: 118ms
memory: 24048kb

input:

300000
955664 156098
22278 126589
167292 51845
63859 251228
637624 245159
997943 64507
211410 2905
2...

output:

96063967308

result:

ok single line: '96063967308'

Test #10:

score: 10
Accepted
time: 660ms
memory: 52096kb

input:

1000000
849191 616814
39890 881600
574818 383574
730781 442109
967711 630220
507984 412759
72865 197...

output:

319422360068

result:

ok single line: '319422360068'