QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#510705#5200. BinCoinHuangHanShengRE 1ms4076kbC++172.1kb2024-08-09 11:17:232024-08-09 11:17:24

詳細信息

Test #1:

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

input:

3 50
1 2 3
1 2 3
3 2 1
1 2 3
3 2 1
1 2 3
1 2 3
1 2 3
1 2 3
3 2 1
1 2 3
3 2 1
1 2 3
3 2 1
1 2 3
3 2 1
1 2 3
1 2 3
3 2 1
1 2 3
3 2 1
1 2 3
3 2 1
1 2 3
1 2 3
3 2 1
1 2 3
1 2 3
1 2 3
1 2 3
3 2 1
1 2 3
3 2 1
3 2 1
1 2 3
3 2 1
1 2 3
3 2 1
3 2 1
1 2 3
1 2 3
3 2 1
1 2 3
3 2 1
3 2 1
3 2 1
1 2 3
1 2 3
3 2 1
3...

output:

2 -1 2

result:

ok everything is fine

Test #2:

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

input:

5 60
2 4 3 5 1
1 5 2 4 3
1 5 2 4 3
1 5 2 4 3
1 5 3 4 2
1 5 3 4 2
1 5 3 4 2
1 5 3 4 2
1 5 3 4 2
3 4 2 5 1
2 4 3 5 1
1 5 2 4 3
3 4 2 5 1
2 4 3 5 1
2 4 3 5 1
1 5 2 4 3
3 4 2 5 1
3 4 2 5 1
1 5 2 4 3
2 4 3 5 1
1 5 2 4 3
1 5 3 4 2
3 4 2 5 1
1 5 3 4 2
1 5 2 4 3
1 5 3 4 2
1 5 2 4 3
2 4 3 5 1
2 4 3 5 1
2 4 3...

output:

5 4 4 5 -1

result:

ok everything is fine

Test #3:

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

input:

11 73
11 1 7 8 5 6 10 3 9 4 2
5 6 10 8 7 1 11 3 9 4 2
9 3 11 1 7 8 5 6 10 4 2
2 4 11 1 7 8 5 6 10 3 9
9 3 7 1 11 8 10 6 5 4 2
2 4 10 6 5 8 7 1 11 3 9
9 3 7 1 11 8 5 6 10 4 2
11 1 7 8 10 6 5 3 9 4 2
9 3 10 6 5 8 7 1 11 4 2
2 4 5 6 10 8 11 1 7 3 9
2 4 11 1 7 8 10 6 5 3 9
2 4 10 6 5 8 11 1 7 3 9
9 3 10...

output:

8 4 4 -1 6 8 1 3 3 6 1

result:

ok everything is fine

Test #4:

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

input:

21 81
9 18 14 13 3 4 7 10 2 21 15 16 5 19 20 12 11 1 17 8 6
14 13 7 4 3 10 2 18 9 21 20 12 6 8 11 1 17 19 15 16 5
2 10 14 13 3 4 7 18 9 21 17 1 11 8 6 12 20 19 5 16 15
2 10 7 4 3 13 14 18 9 21 15 16 5 19 6 8 17 1 11 12 20
15 16 5 19 6 8 17 1 11 12 20 21 9 18 7 4 3 13 14 10 2
5 16 15 19 11 1 17 8 6 1...

output:

8 10 4 13 16 8 4 12 18 18 1 19 10 13 16 19 1 21 21 12 -1

result:

ok everything is fine

Test #5:

score: -100
Runtime Error

input:

239 100
31 148 157 39 186 205 65 129 197 152 238 154 9 207 36 92 109 48 230 58 175 135 50 77 11 52 102 21 139 142 210 138 200 83 214 98 209 1 195 17 55 141 146 101 91 174 184 67 27 235 6 198 208 43 236 143 94 29 60 104 120 155 78 40 218 234 147 4 34 38 239 212 112 116 72 59 211 79 82 32 7 170 113 10...

output:


result: