UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#44149#142. defensesuperguymj1003349ms20848kbC++4.8kb2018-11-16 12:24:362018-11-16 12:24:37

answer


详细

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

Test #1:

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

input:

10 10 A3
52882 73445 4757 91533 25946 25033 37696 90934 36729 81157
7 8
9 10
5 6
1 2
6 7
2 3
8 9
4 5...

output:

301868
158010
264436
249543
178573
158010
178573
178573
236281
264436

result:

ok 10 lines

Test #2:

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

input:

10 10 A3
63364 50671 40634 2343 37356 37695 57405 39021 6087 51467
5 6
9 10
3 4
4 5
2 3
8 9
1 2
6 7
...

output:

135817
176451
192153
189144
154201
181197
153862
173173
199181
135817

result:

ok 10 lines

Test #3:

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

input:

10 10 C3
2726 62959 33730 61241 81161 57879 16442 13012 24221 35331
1 5
1 6
1 2
1 4
2 3
3 8
4 9
2 10...

output:

123636
96008
153887
112450
96008
214189
96008
96008
-1
184079

result:

ok 10 lines

Test #4:

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

input:

10 10 C3
10636 37116 97168 85465 50463 67115 2377 26920 58215 78410
7 8
2 3
3 4
2 7
1 2
5 6
8 9
3 5
...

output:

297269
233636
218859
233636
278374
265974
233636
258179
218859
233636

result:

ok 10 lines

Test #5:

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

input:

100 100 A3
7173 41793 60336 27648 90643 36737 32049 6674 38696 69198 71387 31952 99063 55834 53478 5...

output:

2073161
2107954
2181443
2097858
2129329
2129547
2095502
2106666
2149031
2133479
2203373
2116953
2078...

result:

ok 100 lines

Test #6:

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

input:

100 100 A3
79471 3699 56483 57597 93500 74775 39058 82943 41054 35968 42129 60416 18671 8518 22340 1...

output:

2148445
2165900
2011682
2096810
2011682
2013939
2094069
2011682
2011682
2032925
2011682
2076903
2123...

result:

ok 100 lines

Test #7:

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

input:

100 100 C3
37190 89411 2322 4975 86193 29750 18150 94694 41818 22903 51026 14906 73001 49771 15716 1...

output:

1551390
1578797
1653568
1551390
1568117
1565138
1583332
1570475
1551390
1642886
1603930
1593519
1551...

result:

ok 100 lines

Test #8:

score: 4
Accepted
time: 3ms
memory: 1348kb

input:

2000 2000 A3
62972 7982 24504 26752 6097 83998 95147 96038 19879 1009 96906 4956 31983 85704 78839 3...

output:

41328416
41394115
41396328
41433212
41410564
41441988
41344722
41328416
41329826
41378052
41371617
4...

result:

ok 2000 lines

Test #9:

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

input:

2000 2000 A3
6413 38477 39816 2828 81181 18134 57187 62644 52943 17468 14285 40215 65030 7830 1083 2...

output:

41357901
41280243
41301296
41280243
41280243
41344100
41280243
41280243
41280243
41280243
41280243
4...

result:

ok 2000 lines

Test #10:

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

input:

2000 2000 C3
11637 64162 48937 83892 93100 66683 257 90047 23517 95621 87433 25155 95219 75340 89155...

output:

33303357
33292728
33268678
33218037
33222180
33273654
33218037
33260449
33218037
33218037
33250102
3...

result:

ok 2000 lines

Test #11:

score: 4
Accepted
time: 2ms
memory: 1308kb

input:

2000 2000 C3
56451 3429 14003 45845 57088 78685 30710 32139 94941 72771 84600 49375 62542 15315 4256...

output:

29187858
29187858
29187858
29240993
29315982
29187858
29209447
29193019
29273400
29187858
29212966
2...

result:

ok 2000 lines

Test #12:

score: 4
Accepted
time: 255ms
memory: 20840kb

input:

100000 100000 A1
48675 30768 41222 51561 36308 27052 77348 94077 26661 89347 1516 87637 41084 27617 ...

output:

2069113660
2069113660
2069113660
2069184670
2069113660
2069123520
2069113660
2069113660
2069113660
2...

result:

ok 100000 lines

Test #13:

score: 4
Accepted
time: 235ms
memory: 20836kb

input:

100000 100000 A1
37494 66620 46116 7354 80022 95923 59494 44320 14740 95217 88008 60988 34902 76895 ...

output:

2066577630
2066498915
2066517113
2066532300
2066504280
2066496127
2066532847
2066509070
2066537993
2...

result:

ok 100000 lines

Test #14:

score: 4
Accepted
time: 256ms
memory: 20844kb

input:

100000 100000 A2
85819 69564 88625 20135 92130 76655 26047 68804 4569 21409 58835 93713 13777 30334 ...

output:

-1
-1
-1
2071410216
2071417169
2071471068
-1
2071413082
-1
2071421281
2071410216
-1
2071410216
20714...

result:

ok 100000 lines

Test #15:

score: 4
Accepted
time: 250ms
memory: 20848kb

input:

100000 100000 A2
92263 95496 56293 5344 6458 89918 46551 11858 20504 23221 57374 8552 43405 85241 20...

output:

2065877373
-1
2065818789
-1
2065871245
2065892296
-1
2065865885
2065886307
2065813199
2065833821
206...

result:

ok 100000 lines

Test #16:

score: 4
Accepted
time: 249ms
memory: 20848kb

input:

100000 100000 A2
80358 91896 46253 83307 89363 90234 42362 13883 62135 31137 23441 92708 14548 2310 ...

output:

2079303999
2079345989
-1
2079246206
2079342973
2079262290
2079266376
2079251493
2079298596
207924620...

result:

ok 100000 lines

Test #17:

score: 4
Accepted
time: 295ms
memory: 20848kb

input:

100000 100000 A3
57980 85780 99379 16143 49704 16542 57996 64548 30438 52859 90291 89453 93380 65979...

output:

2068783294
2068864234
2068783294
2068783294
2068862801
2068783294
2068783294
2068813732
2068848541
2...

result:

ok 100000 lines

Test #18:

score: 4
Accepted
time: 162ms
memory: 15768kb

input:

100000 100000 B1
96916 95174 87446 30447 25182 40657 876 65551 63247 88914 84799 73557 14789 46900 1...

output:

24643013
24643013
24737423
24643013
24643013
24643013
24704117
24699817
24665518
24643013
24688700
2...

result:

ok 100000 lines

Test #19:

score: 4
Accepted
time: 157ms
memory: 15768kb

input:

100000 100000 B1
71003 51346 71986 95085 81177 86198 15866 60948 44149 87693 1394 45116 78025 83423 ...

output:

25141375
25141375
25166740
25141375
25141375
25233762
25141375
25141375
25166672
25141375
25141375
2...

result:

ok 100000 lines

Test #20:

score: 4
Accepted
time: 226ms
memory: 18088kb

input:

100000 100000 C1
15800 86142 66671 33438 74857 70658 39933 47135 41957 85467 99922 87060 42738 87764...

output:

1670762116
1670762116
1670844303
1670829756
1670762716
1670795113
1670791724
1670762116
1670774332
1...

result:

ok 100000 lines

Test #21:

score: 4
Accepted
time: 228ms
memory: 18504kb

input:

100000 100000 C1
22362 97767 49191 90359 45560 15689 85784 84963 41062 46148 26237 40571 60948 57373...

output:

1418656694
1418656694
1418656694
1418690469
1418656694
1418656694
1418656694
1418688832
1418656694
1...

result:

ok 100000 lines

Test #22:

score: 4
Accepted
time: 184ms
memory: 18520kb

input:

100000 100000 C2
68179 62181 79284 34969 44962 43940 70884 75875 55342 64982 68456 46671 52035 30880...

output:

1425116151
1425098091
-1
1984127503
1425098091
1425100606
1425130003
-1
1425193862
1425124179
142514...

result:

ok 100000 lines

Test #23:

score: 4
Accepted
time: 357ms
memory: 18108kb

input:

100000 100000 C3
93926 50762 46718 35975 32465 99006 17610 48660 33142 73840 51351 66447 62764 61757...

output:

1677885815
1678000281
1677883138
1677838286
1677835289
1677815932
1677887406
1677815932
1677869037
1...

result:

ok 100000 lines

Test #24:

score: 4
Accepted
time: 226ms
memory: 18512kb

input:

100000 100000 C3
22532 41008 92437 88702 84694 28350 41482 53836 29743 4692 64198 51084 82200 67885 ...

output:

1416532613
1416572112
1416560300
1416618684
1416532613
1416617821
1416668888
1416638779
1416539255
1...

result:

ok 100000 lines

Test #25:

score: 4
Accepted
time: 264ms
memory: 18508kb

input:

100000 100000 C3
73329 24800 41162 10148 98854 83781 21481 80916 54181 38846 74367 81400 29665 36275...

output:

1419933388
1419927922
1419883934
1419978124
1419883934
1419911256
1419899530
1419982246
1419883934
1...

result:

ok 100000 lines

Extra Test:

score: 0
Extra Test Passed