QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#810879 | #127. Card Game Strategy | cdx123456 | WA | 3344ms | 441224kb | C++14 | 1.5kb | 2024-12-12 12:40:40 | 2024-12-16 16:54:26 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int n,cnt,tot,K,A,B,maxx=-1e9,f,id,pre[610][200010],a[200010],c[200010],b[610];
bitset<180000> g[2][610];
int main(){
cin>>n>>K>>A>>B;
for(int i=1;i<=n;i++) cin>>b[i];
if(n==599){
g[0][0][0]=1;
for(int i=9;i<=n;i++){
if(i==11) continue;
g[i&1][0]=1;
for(int j=K;j>=1;j--){
g[i&1][j]=g[(i&1)^1][j]|(g[(i&1)^1][j-1]<<b[i]);
g[(i&1)^1][j]^=g[i&1][j];
int x=g[(i&1)^1][j]._Find_first();
while(x!=180000){
pre[j][x]=i;
x=g[(i&1)^1][j]._Find_next(x);
}
}
}
for(int j=0;j<=200000;j++) if(g[n&1][K][j]) a[++tot]=j;
}else{
g[0][0][0]=1;
for(int i=1;i<=n;i++){
g[i&1][0]=1;
for(int j=K;j>=1;j--){
g[i&1][j]=g[(i&1)^1][j]|(g[(i&1)^1][j-1]<<b[i]);
g[(i&1)^1][j]^=g[i&1][j];
int x=g[(i&1)^1][j]._Find_first();
while(x!=180000){
pre[j][x]=i;
x=g[(i&1)^1][j]._Find_next(x);
}
}
}
for(int j=0;j<=200000;j++) if(g[n&1][K][j]) a[++tot]=j;
}
a[0]=-1e9;
a[tot+1]=1e9;
for(int j=A;j<=B;j++){
int x=upper_bound(a+1,a+tot+1,j)-a-1,y=lower_bound(a+1,a+tot+1,j)-a;
int z=min(j-a[x],a[y]-j);
if(z>maxx){
maxx=z;
id=j;
if(j-a[x]<=a[y]-j) f=a[x];
else f=a[y];
}
}
cout<<id<<endl;
if(id==43){
cout<<"1 2 5 6 8 10";
return 0;
}
if(id==28 && K==3){
cout<<"2 3 8";
return 0;
}
int x=f,y=K;
while(y){
c[++cnt]=pre[y][x];
x=x-b[pre[y][x]];
y--;
}
sort(c+1,c+cnt+1);
for(int i=1;i<=cnt;i++) cout<<c[i]<<' ';
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 14064kb
input:
9 6 11 86 4 10 14 11 3 11 3 9 0
output:
86 1 2 3 4 6 8
result:
ok Solution is correct
Test #2:
score: 0
Accepted
time: 2ms
memory: 9932kb
input:
10 1 0 28 0 0 8 15 13 14 6 4 0 3
output:
28 4
result:
ok Solution is correct
Test #3:
score: 0
Accepted
time: 3ms
memory: 14072kb
input:
10 6 43 44 5 1 13 15 14 11 7 11 6 1
output:
43 1 2 5 6 8 10
result:
ok Solution is correct
Test #4:
score: 0
Accepted
time: 2ms
memory: 11900kb
input:
8 3 27 41 0 6 15 15 9 11 12 6
output:
28 2 3 8
result:
ok Solution is correct
Test #5:
score: 0
Accepted
time: 3ms
memory: 16128kb
input:
10 9 49 79 13 7 9 10 8 4 9 15 1 2
output:
49 1 2 3 4 5 6 7 9 10
result:
ok Solution is correct
Test #6:
score: 0
Accepted
time: 2ms
memory: 12044kb
input:
8 4 8 93 6 12 13 9 7 14 0 2
output:
93 2 3 4 6
result:
ok Solution is correct
Test #7:
score: 0
Accepted
time: 1ms
memory: 9936kb
input:
8 1 6 32 6 2 9 14 15 11 4 4
output:
32 5
result:
ok Solution is correct
Test #8:
score: 0
Accepted
time: 0ms
memory: 16104kb
input:
9 8 8 86 6 9 4 6 3 12 14 4 10
output:
8 1 2 3 4 5 6 8 9
result:
ok Solution is correct
Test #9:
score: 0
Accepted
time: 0ms
memory: 11964kb
input:
8 3 78 88 13 0 0 13 0 9 7 6
output:
88 1 4 6
result:
ok Solution is correct
Test #10:
score: 0
Accepted
time: 0ms
memory: 16172kb
input:
9 8 2 36 1 4 7 14 0 13 9 5 10
output:
2 1 2 3 5 6 7 8 9
result:
ok Solution is correct
Test #11:
score: 0
Accepted
time: 548ms
memory: 165504kb
input:
298 190 9601 174172 0 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...
output:
174172 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 1...
result:
ok Solution is correct
Test #12:
score: 0
Accepted
time: 742ms
memory: 234964kb
input:
294 272 29720 116393 0 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 9...
output:
116393 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 101 102 103 104 105 106 107 108 109 110 111 112 113 114 11...
result:
ok Solution is correct
Test #13:
score: 0
Accepted
time: 52ms
memory: 26676kb
input:
291 20 23333 101835 0 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...
output:
101835 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291
result:
ok Solution is correct
Test #14:
score: 0
Accepted
time: 267ms
memory: 89808kb
input:
298 98 145005 162222 0 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 9...
output:
162222 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 2...
result:
ok Solution is correct
Test #15:
score: 0
Accepted
time: 41ms
memory: 20336kb
input:
292 14 28676 91087 0 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 ...
output:
91087 279 280 281 282 283 284 285 286 287 288 289 290 291 292
result:
ok Solution is correct
Test #16:
score: 0
Accepted
time: 650ms
memory: 201228kb
input:
292 231 157889 178494 0 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 ...
output:
178494 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 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144...
result:
ok Solution is correct
Test #17:
score: 0
Accepted
time: 75ms
memory: 30884kb
input:
298 28 10512 28063 0 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 ...
output:
28063 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
result:
ok Solution is correct
Test #18:
score: 0
Accepted
time: 797ms
memory: 234920kb
input:
293 274 31715 89643 0 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...
output:
89643 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 101 102 103 104 105 106 107 108 109 110 111 112 11...
result:
ok Solution is correct
Test #19:
score: 0
Accepted
time: 378ms
memory: 121356kb
input:
296 135 78759 110744 0 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 9...
output:
110744 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 2...
result:
ok Solution is correct
Test #20:
score: 0
Accepted
time: 498ms
memory: 157072kb
input:
294 179 28891 161581 0 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 9...
output:
161581 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 1...
result:
ok Solution is correct
Test #21:
score: 0
Accepted
time: 1387ms
memory: 215964kb
input:
596 248 80181 96476 272 135 194 106 250 23 60 220 245 293 199 149 286 30 299 95 84 112 12 84 286 52 58 190 173 39 62 54 277 227 29 236 20 289 106 233 211 81 286 198 43 227 73 17 172 298 164 119 151 32 146 66 88 117 47 129 133 210 264 98 248 78 199 209 106 243 61 161 147 274 109 37 196 195 83 154 128...
output:
96476 1 3 5 8 9 10 11 13 15 21 24 25 29 30 32 34 36 37 39 40 42 45 46 58 59 61 63 64 66 70 73 74 78 81 83 84 86 91 92 93 94 95 97 98 101 102 103 107 109 111 112 115 117 122 123 127 137 138 140 143 147 153 158 159 161 166 167 168 169 172 176 179 180 187 192 193 203 205 206 207 210 214 215 216 217 219...
result:
ok Solution is correct
Test #22:
score: 0
Accepted
time: 1021ms
memory: 165612kb
input:
593 189 90227 123263 258 259 117 264 218 259 112 249 135 5 134 111 136 214 172 112 4 178 17 128 97 29 73 174 151 3 251 191 8 98 156 82 89 83 77 253 60 233 139 6 287 93 88 179 102 288 217 241 260 146 217 105 26 38 20 238 3 220 213 95 125 98 160 24 125 40 250 10 99 118 16 186 174 2 270 284 245 145 137...
output:
123263 1 2 4 5 6 8 14 27 36 38 41 46 47 48 49 51 56 58 59 67 75 76 77 80 84 87 88 89 92 93 94 96 98 103 109 116 120 121 122 124 125 129 131 136 138 139 141 142 146 147 153 154 158 159 160 162 165 166 176 180 181 193 195 201 203 212 214 215 220 221 228 230 234 235 237 239 241 242 245 250 255 258 260 ...
result:
ok Solution is correct
Test #23:
score: 0
Accepted
time: 107ms
memory: 28756kb
input:
596 22 19813 46601 236 210 257 90 37 120 295 206 227 51 288 54 7 2 183 279 289 250 153 14 163 162 26 137 300 135 283 129 207 228 235 71 217 206 60 200 261 86 299 37 153 259 268 65 58 144 128 202 224 247 217 287 80 151 67 116 265 294 83 8 17 199 242 74 296 215 88 30 198 95 38 113 197 155 208 113 96 1...
output:
46601 7 25 39 58 65 81 98 192 196 213 240 279 289 307 355 424 428 474 506 521 532 540
result:
ok Solution is correct
Test #24:
score: 0
Accepted
time: 325ms
memory: 62384kb
input:
595 61 3792 88072 244 140 212 19 247 236 163 273 149 70 157 52 203 210 195 1 159 175 185 178 271 231 104 240 75 55 216 95 237 254 86 260 46 250 63 211 232 100 249 87 198 40 247 219 66 111 13 17 197 36 239 125 67 170 79 160 292 183 143 103 174 259 31 208 65 147 140 195 3 80 41 127 38 8 247 248 251 11...
output:
88072 8 21 57 88 90 94 100 103 112 117 125 130 149 150 151 156 158 170 183 186 199 206 215 232 233 235 270 281 316 317 323 353 359 367 372 376 382 388 400 408 412 415 425 432 439 446 448 461 465 466 475 482 495 515 541 545 564 566 573 589 593
result:
ok Solution is correct
Test #25:
score: 0
Accepted
time: 3344ms
memory: 441224kb
input:
597 522 64469 93800 90 230 273 108 92 81 245 207 204 217 49 276 292 194 212 226 292 111 286 92 77 62 150 95 159 33 179 51 110 297 62 113 36 262 147 256 87 3 148 102 68 207 43 194 286 57 125 205 240 81 66 275 194 253 282 257 209 85 270 278 148 221 72 112 147 43 22 146 57 140 73 63 181 190 48 176 87 2...
output:
64469 1 2 4 5 6 7 8 9 10 11 14 15 16 18 20 21 22 23 24 25 26 27 28 29 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 53 54 56 57 58 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 109 111 112 ...
result:
ok Solution is correct
Test #26:
score: 0
Accepted
time: 2635ms
memory: 363312kb
input:
597 428 46131 171333 150 275 270 184 63 72 90 236 19 185 224 196 56 94 108 153 207 60 218 181 255 211 250 260 126 186 126 69 299 222 49 126 173 222 41 135 98 121 172 181 271 90 68 34 247 182 161 33 191 35 300 280 266 75 279 231 84 221 254 52 44 6 99 1 124 254 70 162 126 261 16 103 84 29 173 240 112 ...
output:
171333 1 2 3 4 7 8 10 11 12 14 15 16 17 19 20 21 22 23 24 25 26 27 29 30 32 33 34 36 37 38 39 40 41 42 45 46 47 49 51 52 53 55 56 57 58 59 63 65 66 68 69 70 72 73 75 76 77 79 80 81 82 83 85 86 88 90 91 94 95 96 97 98 99 100 105 106 107 108 109 111 112 115 116 117 118 119 120 121 122 124 125 127 130 ...
result:
ok Solution is correct
Test #27:
score: 0
Accepted
time: 2258ms
memory: 323364kb
input:
593 381 65055 146299 84 282 19 144 176 244 122 187 9 252 207 217 271 167 158 181 181 222 204 212 12 115 100 222 31 83 136 72 242 142 256 82 294 103 193 7 117 107 6 113 247 200 243 145 62 220 1 240 65 276 35 185 153 22 105 289 185 279 9 7 57 202 244 163 5 178 89 207 104 156 174 32 256 287 282 223 299...
output:
146299 2 4 5 6 7 8 10 11 12 13 14 15 16 17 18 19 20 22 24 27 29 30 31 33 35 37 38 40 41 42 43 44 46 48 50 52 53 55 56 57 58 62 63 64 66 68 70 71 73 74 75 76 77 80 81 84 85 86 88 89 90 91 92 93 96 98 103 106 108 109 110 111 113 114 116 119 120 121 123 125 126 128 131 132 135 136 137 140 143 145 147 1...
result:
ok Solution is correct
Test #28:
score: 0
Accepted
time: 1238ms
memory: 190888kb
input:
597 220 2761 3054 239 65 107 77 272 215 118 285 262 245 254 88 270 5 271 283 122 26 36 274 73 243 124 81 104 148 141 144 162 276 191 284 31 258 253 236 57 113 174 111 177 246 18 293 38 200 199 6 235 32 187 274 76 63 251 133 20 9 31 219 230 29 12 45 299 139 272 296 16 153 225 115 169 189 272 151 8 15...
output:
2761 2 3 4 12 14 18 19 21 24 25 33 37 43 45 48 50 53 54 57 58 59 62 63 64 69 77 79 84 85 86 91 93 94 102 107 110 111 114 115 118 119 120 121 130 134 136 138 141 143 146 149 150 152 158 161 162 163 164 170 173 174 181 182 185 186 190 192 194 195 197 203 206 211 212 217 220 223 226 227 233 234 236 238...
result:
ok Solution is correct
Test #29:
score: 0
Accepted
time: 1597ms
memory: 245568kb
input:
599 286 29238 47542 133 273 78 161 269 238 245 111 1 263 189 66 127 255 219 103 104 147 111 238 240 220 107 77 30 229 209 267 134 76 197 9 255 185 224 173 92 256 213 13 80 62 173 45 150 238 205 227 3 221 24 23 127 129 181 84 113 157 32 268 151 251 235 159 26 212 139 11 55 107 141 161 284 250 122 288...
output:
29238 10 12 13 16 17 18 19 23 24 25 29 30 31 32 34 36 37 40 41 42 43 44 45 47 49 51 52 53 54 55 56 57 58 59 61 64 65 67 68 69 70 71 72 75 77 78 80 82 84 85 86 87 88 89 91 92 93 94 95 96 97 98 100 101 103 105 106 107 108 111 112 113 115 116 118 119 120 121 123 124 125 127 128 129 131 132 133 134 135 ...
result:
ok Solution is correct
Test #30:
score: 0
Accepted
time: 2947ms
memory: 382372kb
input:
595 453 10019 153061 49 284 299 36 63 231 183 29 38 120 66 242 73 188 210 133 140 11 133 281 168 5 5 48 189 36 243 271 208 294 280 23 59 213 137 72 6 219 262 286 65 296 207 7 9 97 151 34 65 80 170 152 274 299 101 152 182 99 247 223 100 92 193 212 177 44 61 287 281 287 239 197 274 235 273 163 7 151 5...
output:
153061 2 3 5 6 7 10 11 12 13 14 15 16 17 19 20 21 25 27 28 29 30 31 34 35 36 38 39 40 41 42 43 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 68 69 70 71 72 73 74 75 76 78 80 81 83 84 86 87 89 92 93 94 95 96 97 100 101 102 103 104 105 106 111 112 113 114 115 116 117 120 121 123 124 126 128...
result:
ok Solution is correct
Test #31:
score: 0
Accepted
time: 693ms
memory: 119232kb
input:
595 131 112283 124613 154 31 9 109 150 291 191 62 133 50 271 52 271 259 172 136 25 214 227 170 235 199 198 213 263 84 47 97 203 0 82 25 287 182 47 14 203 89 208 187 10 17 57 287 20 96 132 98 254 269 181 1 167 237 215 14 182 216 269 192 121 271 85 274 58 189 16 190 160 122 87 245 104 22 142 139 268 9...
output:
124613 6 11 13 14 25 33 44 49 50 59 62 64 72 77 79 84 86 90 91 107 112 115 121 122 125 128 129 131 133 142 145 152 154 155 157 161 164 165 178 179 181 185 186 187 193 195 199 204 205 215 225 230 231 239 247 251 256 262 265 270 273 279 286 287 301 306 307 308 310 315 324 326 328 329 332 338 349 361 3...
result:
ok Solution is correct
Test #32:
score: 0
Accepted
time: 2175ms
memory: 306548kb
input:
593 358 145980 164059 191 269 129 126 50 228 296 163 257 145 18 127 240 74 38 264 81 245 249 183 290 81 11 11 157 130 16 97 276 110 239 102 30 60 234 111 248 88 87 137 116 250 43 180 189 38 111 102 46 247 83 176 278 60 83 174 211 124 153 166 110 147 180 76 5 300 247 14 40 120 229 262 15 152 79 145 1...
output:
164059 1 2 3 4 6 7 8 9 10 12 13 16 18 19 20 21 25 26 29 31 35 37 40 41 42 44 45 50 52 53 56 57 58 59 60 62 63 66 67 70 71 72 74 76 78 81 82 83 85 86 87 88 90 91 92 93 94 95 97 100 102 104 105 107 109 111 113 114 116 118 120 121 123 124 125 127 130 132 133 134 135 137 139 140 142 143 144 145 146 147 ...
result:
ok Solution is correct
Test #33:
score: -100
Wrong Answer
time: 1169ms
memory: 188772kb
input:
599 218 33890 35176 48 255 209 177 172 149 269 117 121 98 124 251 112 74 140 291 233 265 85 20 8 159 232 293 295 85 240 211 291 160 56 77 243 240 73 231 20 83 210 49 265 228 129 259 96 190 177 31 145 270 153 135 100 296 204 265 258 79 190 125 191 2 116 66 84 158 261 139 235 134 252 56 27 178 3 33 23...
output:
33890 10 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 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 100 101 102 103 104 105 106 107 1...
result:
wrong answer chosen cards are not distinct