UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#80901#707. LPEdenHazard1001030ms1284kbC++11986b2019-10-23 19:02:132019-10-23 19:02:15

answer


Details

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

Test #1:

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

input:

5
11 9663
56 546 133 749 22 703 465 1197 1164 902 1085
1397 915 1049 1434 1728 960 1498 1572 1683 92...

output:

3291569
4514125
1076849
4447672
4692669

result:

ok 5 lines

Test #2:

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

input:

5
12 4966
78 833 840 64 994 710 55 104 806 44 1175 313
898 1463 861 1136 1365 1436 1522 1083 1373 14...

output:

1931699
5890543
385110
8367176
740077

result:

ok 5 lines

Test #3:

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

input:

5
13 3845
705 585 328 393 713 127 24 133 188 52 653 256 834
1285 1455 745 1091 1406 647 540 1385 142...

output:

506883
236388
972291
2940738
117194

result:

ok 5 lines

Test #4:

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

input:

5
14 9643
30 430 498 193 656 624 411 1137 457 948 36 596 352 772
418 1316 1100 806 871 1228 624 1375...

output:

9709487
3966662
648449
3481226
IMPOSSIBLE!!!

result:

ok 5 lines

Test #5:

score: 5
Accepted
time: 2ms
memory: 1272kb

input:

5
15 8022
382 191 739 697 170 212 915 1172 742 23 66 1006 718 415 385
803 225 1028 889 916 240 1113 ...

output:

5188789
3179489
191616
5899760
853271

result:

ok 5 lines

Test #6:

score: 5
Accepted
time: 4ms
memory: 1212kb

input:

5
986 84
2 1 1 5 1 5 1 0 1 2 5 4 1 2 1 3 3 7 3 2 0 3 6 3 0 7 3 1 6 0 0 4 2 3 0 0 1 2 1 2 5 3 1 4 4 0...

output:

224225
3734
8329
202539
8479

result:

ok 5 lines

Test #7:

score: 5
Accepted
time: 1ms
memory: 1208kb

input:

5
987 38
4 2 2 1 1 5 2 2 2 0 0 4 2 3 2 6 9 4 0 3 2 0 1 0 0 1 7 5 0 1 5 1 9 3 3 9 4 6 7 0 3 3 1 2 6 2...

output:

13222
89086
10314
14647
103147

result:

ok 5 lines

Test #8:

score: 5
Accepted
time: 3ms
memory: 1208kb

input:

5
988 100
0 7 0 1 4 3 1 1 6 0 0 0 4 2 3 4 0 0 4 2 4 2 9 2 6 1 5 4 2 5 1 0 7 4 1 2 1 9 4 2 5 2 7 3 2 ...

output:

198024
32569
581
2609
242941

result:

ok 5 lines

Test #9:

score: 5
Accepted
time: 3ms
memory: 1208kb

input:

5
989 9
0 7 2 5 0 9 0 5 1 2 0 1 5 1 0 2 8 1 1 4 3 2 1 6 1 1 2 6 4 3 3 3 2 3 2 1 0 0 2 0 1 4 5 6 0 0 ...

output:

3680
189515
73318
84600
120224

result:

ok 5 lines

Test #10:

score: 5
Accepted
time: 4ms
memory: 1208kb

input:

5
990 44
5 1 4 7 2 4 4 7 3 1 6 3 3 0 1 2 0 2 1 1 0 0 1 5 0 1 0 6 5 1 2 5 0 7 1 4 1 5 2 0 5 3 7 1 1 3...

output:

89102
209657
164750
239889
108604

result:

ok 5 lines

Test #11:

score: 5
Accepted
time: 95ms
memory: 1256kb

input:

5
991 6108
0 2 8 9 8 9 3 0 9 10 0 17 6 4 3 10 10 13 0 9 8 10 3 2 6 5 12 4 5 0 4 1 10 5 0 4 9 17 10 0...

output:

0
0
0
IMPOSSIBLE!!!
0

result:

ok 5 lines

Test #12:

score: 5
Accepted
time: 35ms
memory: 1252kb

input:

5
992 5018
4 6 16 0 12 5 4 14 8 3 2 9 0 14 9 10 6 3 1 3 0 3 2 11 1 10 9 9 4 8 6 0 11 0 6 2 13 3 9 9 ...

output:

0
IMPOSSIBLE!!!
0
IMPOSSIBLE!!!
IMPOSSIBLE!!!

result:

ok 5 lines

Test #13:

score: 5
Accepted
time: 50ms
memory: 1256kb

input:

5
993 61
125 2492 1730 1601 2965 2209 1480 1758 1608 2900 1170 2184 2155 1788 1861 2263 1841 1338 14...

output:

IMPOSSIBLE!!!
IMPOSSIBLE!!!
IMPOSSIBLE!!!
0
0

result:

ok 5 lines

Test #14:

score: 5
Accepted
time: 64ms
memory: 1248kb

input:

5
994 4815
2 4 5 11 3 10 5 5 11 0 0 4 0 5 3 7 15 6 13 0 2 1 4 9 7 5 0 4 1 10 2 13 2 13 5 8 4 14 4 13...

output:

0
0
IMPOSSIBLE!!!
0
IMPOSSIBLE!!!

result:

ok 5 lines

Test #15:

score: 5
Accepted
time: 134ms
memory: 1276kb

input:

5
995 5937
16 7 5 3 2 1 0 8 2 6 14 4 0 8 10 6 0 18 3 10 0 2 13 1 4 14 17 9 8 11 2 9 7 0 0 4 11 9 12 ...

output:

177981360
121102967
149638921
174043326
91818181

result:

ok 5 lines

Test #16:

score: 5
Accepted
time: 120ms
memory: 1280kb

input:

5
996 5994
11 8 1 9 2 1 6 3 4 8 7 1 3 8 14 3 16 18 4 12 7 9 1 0 4 3 12 8 3 12 12 7 3 5 4 13 1 0 4 5 ...

output:

187904721
66707371
65297533
154382948
75520297

result:

ok 5 lines

Test #17:

score: 5
Accepted
time: 118ms
memory: 1280kb

input:

5
997 5922
3 10 6 12 6 4 1 18 1 2 5 2 14 7 13 7 3 0 17 2 2 7 9 10 11 17 9 5 0 14 2 11 2 2 4 11 7 11 ...

output:

188118254
51916613
157012278
72170019
172607797

result:

ok 5 lines

Test #18:

score: 5
Accepted
time: 142ms
memory: 1264kb

input:

5
998 4581
1 2 17 0 12 1 14 5 7 18 8 3 4 9 1 1 6 18 6 8 5 13 0 9 3 0 0 0 0 6 4 4 6 2 0 9 1 9 1 16 16...

output:

117478518
118825331
129073673
59109215
106285403

result:

ok 5 lines

Test #19:

score: 5
Accepted
time: 124ms
memory: 1280kb

input:

5
999 3967
0 8 3 15 1 2 8 2 3 0 8 1 15 8 17 5 5 4 6 10 11 14 10 7 5 14 3 2 1 5 2 3 7 6 5 4 3 5 0 6 8...

output:

85686615
48973440
88676295
224820475
183950349

result:

ok 5 lines

Test #20:

score: 5
Accepted
time: 131ms
memory: 1276kb

input:

5
1000 3489
19 6 3 2 3 2 3 4 2 4 1 1 3 7 11 4 1 11 1 4 8 2 9 5 2 9 16 4 14 1 2 1 4 0 9 1 0 1 0 6 2 8...

output:

60207165
167254647
79365456
113483259
157105043

result:

ok 5 lines

Extra Test:

score: 0
Extra Test Passed