QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#318490#5135. Kiosk Constructionlmq26052003WA 128ms10840kbC++202.3kb2024-01-31 11:43:132024-01-31 11:43:13

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 9128kb

input:

2 3
1 2 3
6 5 4

output:

2 2

result:

ok 

Test #2:

score: 0
Accepted
time: 2ms
memory: 8092kb

input:

3 3
1 4 8
7 5 2
3 9 6

output:

impossible

result:

ok 

Test #3:

score: 0
Accepted
time: 2ms
memory: 8348kb

input:

3 3
9 3 1
4 7 2
8 6 5

output:

4 3

result:

ok 

Test #4:

score: 0
Accepted
time: 0ms
memory: 8396kb

input:

2 2
1 2
3 4

output:

1 2

result:

ok 

Test #5:

score: 0
Accepted
time: 1ms
memory: 7628kb

input:

2 2
4 3
1 2

output:

4 2

result:

ok 

Test #6:

score: 0
Accepted
time: 0ms
memory: 8888kb

input:

2 3
3 5 2
6 1 4

output:

impossible

result:

ok 

Test #7:

score: 0
Accepted
time: 2ms
memory: 8724kb

input:

2 3
5 3 4
1 6 2

output:

6 2

result:

ok 

Test #8:

score: 0
Accepted
time: 0ms
memory: 8060kb

input:

3 2
2 4
6 3
1 5

output:

6 2

result:

ok 

Test #9:

score: 0
Accepted
time: 2ms
memory: 9152kb

input:

3 3
1 5 9
7 2 8
6 4 3

output:

impossible

result:

ok 

Test #10:

score: 0
Accepted
time: 0ms
memory: 8188kb

input:

3 3
8 3 9
5 6 2
1 4 7

output:

impossible

result:

ok 

Test #11:

score: 0
Accepted
time: 2ms
memory: 9212kb

input:

5 3
4 12 8
7 6 10
2 1 13
3 9 14
5 11 15

output:

impossible

result:

ok 

Test #12:

score: 0
Accepted
time: 0ms
memory: 9028kb

input:

5 5
24 23 3 10 1
6 7 9 18 5
25 2 20 11 8
4 13 12 14 15
17 21 22 19 16

output:

impossible

result:

ok 

Test #13:

score: 0
Accepted
time: 0ms
memory: 9024kb

input:

10 10
83 24 7 98 40 18 56 81 12 73
77 87 33 22 61 38 8 48 63 34
25 29 72 97 28 26 54 3 89 13
65 60 42 45 55 36 16 70 17 5
90 69 74 64 99 31 9 2 66 51
44 35 14 58 71 27 92 84 32 100
6 82 37 76 52 43 39 59 91 41
50 11 15 85 62 10 20 86 53 95
46 68 4 49 1 75 93 19 23 57
80 96 78 67 79 30 88 47 94 21

output:

impossible

result:

ok 

Test #14:

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

input:

20 10
86 175 137 160 149 72 135 64 2 131
134 83 66 148 141 1 171 90 178 57
108 152 179 136 47 67 142 124 121 59
146 41 126 89 114 118 196 112 125 19
26 180 50 107 96 188 128 14 94 88
156 7 49 76 91 117 56 104 161 127
105 195 184 40 24 139 3 190 106 80
116 21 34 12 87 97 130 140 103 98
192 81 157 194...

output:

impossible

result:

ok 

Test #15:

score: 0
Accepted
time: 0ms
memory: 8152kb

input:

2 40
59 36 73 43 16 15 2 49 51 21 30 79 60 78 48 19 4 45 77 65 3 63 22 11 57 58 54 76 27 70 25 12 62 69 29 1 50 35 14 17
71 56 13 66 75 26 6 68 37 72 46 38 53 8 41 24 32 31 33 80 23 64 5 52 20 9 40 61 34 10 39 47 67 74 42 18 7 55 28 44

output:

impossible

result:

ok 

Test #16:

score: 0
Accepted
time: 128ms
memory: 10840kb

input:

40 40
1545 1478 236 1013 790 988 319 1231 822 1598 1505 529 340 1441 224 681 1449 537 151 1087 966 552 938 101 676 136 807 1507 1079 328 1200 34 645 1127 316 518 357 726 121 1314
971 1266 564 954 468 627 1198 208 799 793 956 1206 70 343 406 221 142 408 1131 1533 504 1279 764 629 498 455 366 1407 991...

output:

impossible

result:

ok 

Test #17:

score: 0
Accepted
time: 126ms
memory: 9880kb

input:

40 40
1559 1253 109 396 934 203 833 1534 130 603 105 395 384 1521 713 647 1170 379 392 269 67 919 1447 429 784 688 106 885 763 853 621 680 1098 120 1486 1101 1099 852 748 1395
472 327 932 977 1451 65 670 460 673 838 1106 236 649 164 1407 1439 1068 1037 315 1326 70 143 474 1556 740 1390 237 938 1310 ...

output:

impossible

result:

ok 

Test #18:

score: 0
Accepted
time: 2ms
memory: 9076kb

input:

3 3
1 2 3
4 5 6
7 8 9

output:

1 4

result:

ok 

Test #19:

score: -100
Wrong Answer
time: 58ms
memory: 10480kb

input:

40 31
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
94 95 96 97 98 99 100 10...

output:

12 42

result:

FAIL Reported distance is not correct.