QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#590507 | #8726. Magic Show | isirazeev | 0 | 0ms | 1844kb | C++20 | 1.9kb | 2024-09-26 01:12:56 | 2024-09-26 01:12:57 |
Alice
#include <vector>
#include "Alice.h"
#include <algorithm>
using namespace std;
// you may define some global variables, but it does not work if you try to transfer any information from function Alice() to function Bob() through these variables.
// you had better not use the same global variables in function Alice() and in function Bob().
std::vector<std::pair<int,int>> Alice(){
const int N = 61 * 40 + 61;
long long x = setN(N);
vector<pair<int, int>> edges;
int cnt[N + 1];
for(int i = 0; i <= N; i++) cnt[i] = 0;
for(long long bit = 0; bit <= 60; bit++){
if(((x >> bit) & 1) == 1){
for(int j = 62 + bit * 40; j < 62 + (bit + 1) * 40; j++){
edges.emplace_back(bit + 1, j);
cnt[j]++;
}
}
}
vector<int> v;
for(int i = 62; i <= N; i++){
if(cnt[i] == 0)
v.emplace_back(i);
}
int non_zero = 0;
for(int i = 62; i <= N; i++){
if(cnt[i] != 0)
non_zero = i;
}
for(int i = 1; i < 61; i++){
edges.emplace_back(i, i + 1);
}
for(int i : v){
edges.emplace_back(i, non_zero);
}
random_shuffle(edges.begin(), edges.end());
return edges;
}
Bob
#include <vector>
#include "Bob.h"
using namespace std;
long long Bob(std::vector<std::pair<int,int>> V){
const int N = 61 * 40 + 61;
int cnt[N + 1];
for(int i = 0; i <= N; i++) cnt[i] = 0;
for(int i = 1; i < (int)V.size(); i++){
pair<int, int> p = V[i];
int dif = p.first - p.second;
if(dif < 0) dif = -dif;
if(!(dif == 1 && max(p.first, p.second) <= 61))
cnt[p.first]++, cnt[p.second]++;
}
long long res = 0;
for(int i = 1; i <= 61; i++){
int bit = i - 1;
if(cnt[i] > 0)
res += (1ll << bit);
}
return res;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1844kb,1808kb
input:
1 4005
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 1206 541 1192 541 703 541 2396 541 2402 541 230 541 708 541 1133 541 9 386 2391 541 1215 541 1031 541 42 43 1651 541 1737 541 1981 541 1418 541 1196 541 645 541 722...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 1206 541 1192 541 703 541 2396 541 2402 541 230 541 708 541 1133 541 9 386 2391 541 1215 541 1031 541 42 43 1651 541 1737 541 1981 541 1418 541 1196 541 645 541 722...
output:
2 2501 2350 1 2 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 76 1 77 1 78 1 79 1 80 1 81 1 82 1 83 1 84 1 85 1 86 1 87 1 88 1 89 1 91 1 92 1 93 1 94 1 95 1 96 1 97 1 98 1 100 1 101 2 3 3 4 3 142 3 143 3 144 3 145 3 146 3 147 3 148 3 149 3 150 3 151 3 152 3 153 3 154 3 155 3 156...
input:
2 2501 2350 1 2 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 76 1 77 1 78 1 79 1 80 1 81 1 82 1 83 1 84 1 85 1 86 1 87 1 88 1 89 1 91 1 92 1 93 1 94 1 95 1 96 1 97 1 98 1 100 1 101 2 3 3 4 3 142 3 143 3 144 3 145 3 146 3 147 3 148 3 149 3 150 3 151 3 152 3 153 3 154 3 155 3 156...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 4005
Test #2:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1836kb,1808kb
input:
1 459
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 1206 421 1192 421 703 421 2396 421 2402 421 470 421 708 421 1133 421 8 346 2391 421 1215 421 1031 421 243 421 1651 421 1737 421 1981 421 1418 421 1196 421 645 421 7...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 1206 421 1192 421 703 421 2396 421 2402 421 470 421 708 421 1133 421 8 346 2391 421 1215 421 1031 421 243 421 1651 421 1737 421 1981 421 1418 421 1196 421 645 421 7...
output:
2 2501 2350 1 2 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 76 1 77 1 78 1 79 1 80 1 81 1 82 1 83 1 84 1 85 1 86 1 87 1 88 1 89 1 91 1 92 1 93 1 94 1 95 1 96 1 97 1 98 1 100 1 101 2 3 2 102 2 103 2 104 2 105 2 106 2 107 2 108 2 109 2 110 2 111 2 112 2 113 2 114 2 115 2 116 2 1...
input:
2 2501 2350 1 2 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 76 1 77 1 78 1 79 1 80 1 81 1 82 1 83 1 84 1 85 1 86 1 87 1 88 1 89 1 91 1 92 1 93 1 94 1 95 1 96 1 97 1 98 1 100 1 101 2 3 2 102 2 103 2 104 2 105 2 106 2 107 2 108 2 109 2 110 2 111 2 112 2 113 2 114 2 115 2 116 2 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 459
Test #3:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1840kb,1812kb
input:
1 2495
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 1206 541 1192 541 703 541 2396 541 2402 541 430 541 708 541 1133 541 5 226 2391 541 1215 541 1031 541 2 3 1651 541 1737 541 1981 541 1418 541 1196 541 645 541 722 5...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 1206 541 1192 541 703 541 2396 541 2402 541 430 541 708 541 1133 541 5 226 2391 541 1215 541 1031 541 2 3 1651 541 1737 541 1981 541 1418 541 1196 541 645 541 722 5...
output:
2 2501 2350 1 2 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 76 1 77 1 78 1 79 1 80 1 81 1 82 1 83 1 84 1 85 1 86 1 87 1 88 1 89 1 91 1 92 1 93 1 94 1 95 1 96 1 97 1 98 1 100 1 101 2 3 2 102 2 103 2 104 2 105 2 106 2 107 2 108 2 109 2 110 2 111 2 112 2 113 2 114 2 115 2 116 2 1...
input:
2 2501 2350 1 2 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 76 1 77 1 78 1 79 1 80 1 81 1 82 1 83 1 84 1 85 1 86 1 87 1 88 1 89 1 91 1 92 1 93 1 94 1 95 1 96 1 97 1 98 1 100 1 101 2 3 2 102 2 103 2 104 2 105 2 106 2 107 2 108 2 109 2 110 2 111 2 112 2 113 2 114 2 115 2 116 2 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 2495
Test #4:
score: 0
Wrong Answer
time: 0ms = 0ms + 0ms
memory: 1844kb,1808kb
input:
3 1560
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 2501 1206 501 1192 501 703 501 2396 501 2402 501 390 501 708 501 1133 501 5 6 2391 501 1215 501 1031 501 283 501 1651 501 1737 501 1981 501 1418 501 1196 501 645 501 722...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 2501 1206 501 1192 501 703 501 2396 501 2402 501 390 501 708 501 1133 501 5 6 2391 501 1215 501 1031 501 283 501 1651 501 1737 501 1981 501 1418 501 1196 501 645 501 722...
output:
4 2501 2281 11 501 62 501 63 501 64 501 65 501 66 501 67 501 68 501 69 501 70 501 71 501 72 501 73 501 74 501 75 501 76 501 77 501 78 501 79 501 80 501 81 501 82 501 83 501 84 501 85 501 86 501 87 501 88 501 89 501 90 501 91 501 92 501 93 501 94 501 95 501 96 501 97 501 98 501 99 501 100 501 101 501...
input:
4 2501 2281 11 501 62 501 63 501 64 501 65 501 66 501 67 501 68 501 69 501 70 501 71 501 72 501 73 501 74 501 75 501 76 501 77 501 78 501 79 501 80 501 81 501 82 501 83 501 84 501 85 501 86 501 87 501 88 501 89 501 90 501 91 501 92 501 93 501 94 501 95 501 96 501 97 501 98 501 99 501 100 501 101 501...
output:
9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4 Incorrect answer.
Subtask #2:
score: 0
Wrong Answer
Test #13:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1836kb,1812kb
input:
1 17476204
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 1206 1061 1192 1061 463 1061 2396 1061 2402 1061 29 30 468 1061 1133 1061 10 426 2391 1061 1215 1061 991 1061 20 823 1651 1061 1737 1061 1981 1061 1418 1061 1196 10...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 1206 1061 1192 1061 463 1061 2396 1061 2402 1061 29 30 468 1061 1133 1061 10 426 2391 1061 1215 1061 991 1061 20 823 1651 1061 1737 1061 1981 1061 1418 1061 1196 10...
output:
2 2501 2350 1 2 2 3 3 4 3 142 3 143 3 144 3 145 3 146 3 147 3 148 3 149 3 150 3 151 3 152 3 153 3 154 3 156 3 157 3 158 3 159 3 160 3 161 3 162 3 163 3 164 3 165 3 166 3 167 3 168 3 169 3 171 3 172 3 173 3 174 3 175 3 176 3 177 3 178 3 180 3 181 4 5 4 182 4 183 4 184 4 185 4 186 4 187 4 188 4 189 4 ...
input:
2 2501 2350 1 2 2 3 3 4 3 142 3 143 3 144 3 145 3 146 3 147 3 148 3 149 3 150 3 151 3 152 3 153 3 154 3 156 3 157 3 158 3 159 3 160 3 161 3 162 3 163 3 164 3 165 3 166 3 167 3 168 3 169 3 171 3 172 3 173 3 174 3 175 3 176 3 177 3 178 3 180 3 181 4 5 4 182 4 183 4 184 4 185 4 186 4 187 4 188 4 189 4 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 17476204
Test #14:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1836kb,1808kb
input:
1 11926600
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 1206 1021 1192 1021 223 1021 2396 1021 2402 1021 22 930 228 1021 1133 1021 13 546 2391 1021 1215 1021 1031 1021 19 783 1651 1021 1737 1021 1981 1021 1418 1021 1196 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 1206 1021 1192 1021 223 1021 2396 1021 2402 1021 22 930 228 1021 1133 1021 13 546 2391 1021 1215 1021 1031 1021 19 783 1651 1021 1737 1021 1981 1021 1418 1021 1196 ...
output:
2 2501 2350 1 2 2 3 3 4 4 5 4 182 4 183 4 184 4 185 4 186 4 187 4 188 4 189 4 190 4 191 4 192 4 193 4 194 4 196 4 197 4 198 4 199 4 200 4 201 4 202 4 203 4 204 4 205 4 206 4 207 4 208 4 209 4 211 4 212 4 213 4 214 4 215 4 216 4 217 4 218 4 220 4 221 5 6 6 7 7 8 7 302 7 303 7 304 7 305 7 306 7 307 7 ...
input:
2 2501 2350 1 2 2 3 3 4 4 5 4 182 4 183 4 184 4 185 4 186 4 187 4 188 4 189 4 190 4 191 4 192 4 193 4 194 4 196 4 197 4 198 4 199 4 200 4 201 4 202 4 203 4 204 4 205 4 206 4 207 4 208 4 209 4 211 4 212 4 213 4 214 4 215 4 216 4 217 4 218 4 220 4 221 5 6 6 7 7 8 7 302 7 303 7 304 7 305 7 306 7 307 7 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 11926600
Test #15:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1832kb,1812kb
input:
1 16602378
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 1206 1021 1192 1021 263 1021 2396 1021 2402 1021 23 970 268 1021 1133 1021 13 546 2391 1021 1215 1021 1031 1021 21 863 1651 1021 1737 1021 1981 1021 1418 1021 1196 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 1206 1021 1192 1021 263 1021 2396 1021 2402 1021 23 970 268 1021 1133 1021 13 546 2391 1021 1215 1021 1031 1021 21 863 1651 1021 1737 1021 1981 1021 1418 1021 1196 ...
output:
2 2501 2350 1 2 2 3 2 102 2 103 2 104 2 105 2 106 2 107 2 108 2 109 2 110 2 111 2 112 2 113 2 114 2 116 2 117 2 118 2 119 2 120 2 121 2 122 2 123 2 124 2 125 2 126 2 127 2 128 2 129 2 131 2 132 2 133 2 134 2 135 2 136 2 137 2 138 2 140 2 141 3 4 4 5 4 182 4 183 4 184 4 185 4 186 4 187 4 188 4 189 4 ...
input:
2 2501 2350 1 2 2 3 2 102 2 103 2 104 2 105 2 106 2 107 2 108 2 109 2 110 2 111 2 112 2 113 2 114 2 116 2 117 2 118 2 119 2 120 2 121 2 122 2 123 2 124 2 125 2 126 2 127 2 128 2 129 2 131 2 132 2 133 2 134 2 135 2 136 2 137 2 138 2 140 2 141 3 4 4 5 4 182 4 183 4 184 4 185 4 186 4 187 4 188 4 189 4 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 16602378
Test #16:
score: 0
Wrong Answer
time: 0ms = 0ms + 0ms
memory: 1832kb,1800kb
input:
3 13129243
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 2501 1206 1021 1192 1021 503 1021 2396 1021 2402 1021 29 30 508 1021 1133 1021 10 426 2391 1021 1215 1021 1031 1021 23 943 1651 1021 1737 1021 1981 1021 1418 1021 1196 1...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 2501 1206 1021 1192 1021 503 1021 2396 1021 2402 1021 29 30 508 1021 1133 1021 10 426 2391 1021 1215 1021 1031 1021 23 943 1651 1021 1737 1021 1981 1021 1418 1021 1196 1...
output:
4 2501 2001 24 1021 142 1021 143 1021 144 1021 145 1021 146 1021 147 1021 148 1021 149 1021 150 1021 151 1021 152 1021 153 1021 154 1021 155 1021 156 1021 157 1021 158 1021 159 1021 160 1021 161 1021 162 1021 163 1021 164 1021 165 1021 166 1021 167 1021 168 1021 169 1021 170 1021 171 1021 172 1021 1...
input:
4 2501 2001 24 1021 142 1021 143 1021 144 1021 145 1021 146 1021 147 1021 148 1021 149 1021 150 1021 151 1021 152 1021 153 1021 154 1021 155 1021 156 1021 157 1021 158 1021 159 1021 160 1021 161 1021 162 1021 163 1021 164 1021 165 1021 166 1021 167 1021 168 1021 169 1021 170 1021 171 1021 172 1021 1...
output:
9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4 Incorrect answer.
Subtask #3:
score: 0
Wrong Answer
Test #25:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1824kb,1812kb
input:
1 355365355024496523
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 55 2226 54 2212 27 1123 2356 2421 2362 2421 19 810 27 1128 52 2113 9 386 2351 2421 55 2235 48 1971 17 703 691 2421 977 2421 1461 2421 178 2421 54 2216 26 1065 29 11...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 55 2226 54 2212 27 1123 2356 2421 2362 2421 19 810 27 1128 52 2113 9 386 2351 2421 55 2235 48 1971 17 703 691 2421 977 2421 1461 2421 178 2421 54 2216 26 1065 29 11...
output:
2 2501 2350 1 2 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 76 1 77 1 78 1 79 1 80 1 81 1 82 1 83 1 84 1 85 1 86 1 87 1 88 1 89 1 91 1 92 1 93 1 94 1 95 1 96 1 97 1 98 1 100 1 101 2 3 2 102 2 103 2 104 2 105 2 106 2 107 2 108 2 109 2 110 2 111 2 112 2 113 2 114 2 115 2 116 2 1...
input:
2 2501 2350 1 2 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 76 1 77 1 78 1 79 1 80 1 81 1 82 1 83 1 84 1 85 1 86 1 87 1 88 1 89 1 91 1 92 1 93 1 94 1 95 1 96 1 97 1 98 1 100 1 101 2 3 2 102 2 103 2 104 2 105 2 106 2 107 2 108 2 109 2 110 2 111 2 112 2 113 2 114 2 115 2 116 2 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 355365355024496523
Test #26:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1828kb,1812kb
input:
1 727827999106414164
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 286 2461 272 2461 42 1723 2316 2461 2322 2461 33 1370 42 1728 133 2461 11 466 2311 2461 295 2461 30 31 23 943 1051 2461 1137 2461 1501 2461 698 2461 276 2461 41 166...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 286 2461 272 2461 42 1723 2316 2461 2322 2461 33 1370 42 1728 133 2461 11 466 2311 2461 295 2461 30 31 23 943 1051 2461 1137 2461 1501 2461 698 2461 276 2461 41 166...
output:
2 2501 2350 1 2 2 3 3 4 3 142 3 143 3 144 3 145 3 146 3 147 3 148 3 149 3 150 3 151 3 152 3 153 3 154 3 156 3 157 3 158 3 159 3 160 3 161 3 162 3 163 3 164 3 165 3 166 3 167 3 168 3 169 3 171 3 172 3 173 3 174 3 175 3 176 3 177 3 178 3 180 3 181 4 5 5 6 5 222 5 223 5 224 5 225 5 226 5 227 5 228 5 22...
input:
2 2501 2350 1 2 2 3 3 4 3 142 3 143 3 144 3 145 3 146 3 147 3 148 3 149 3 150 3 151 3 152 3 153 3 154 3 156 3 157 3 158 3 159 3 160 3 161 3 162 3 163 3 164 3 165 3 166 3 167 3 168 3 169 3 171 3 172 3 173 3 174 3 175 3 176 3 177 3 178 3 180 3 181 4 5 5 6 5 222 5 223 5 224 5 225 5 226 5 227 5 228 5 22...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 727827999106414164
Test #27:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1820kb,1812kb
input:
1 656410143989222955
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 326 2461 312 2461 36 1483 2356 2461 2362 2461 23 970 36 1488 173 2461 10 426 2351 2461 335 2461 60 2451 21 863 1171 2461 1337 2461 1741 2461 738 2461 316 2461 35 14...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 326 2461 312 2461 36 1483 2356 2461 2362 2461 23 970 36 1488 173 2461 10 426 2351 2461 335 2461 60 2451 21 863 1171 2461 1337 2461 1741 2461 738 2461 316 2461 35 14...
output:
2 2501 2369 1 2 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 79 1 80 1 82 1 83 1 84 1 85 1 86 1 87 1 88 1 89 1 90 1 91 1 92 1 93 1 94 1 95 1 96 1 97 1 98 1 99 1 100 1 101 2 3 2 102 2 103 2 104 2 105 2 106 2 107 2 108 2 109 2 110 2 111 2 112 2 113 2 114 2 115...
input:
2 2501 2369 1 2 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 79 1 80 1 82 1 83 1 84 1 85 1 86 1 87 1 88 1 89 1 90 1 91 1 92 1 93 1 94 1 95 1 96 1 97 1 98 1 99 1 100 1 101 2 3 2 102 2 103 2 104 2 105 2 106 2 107 2 108 2 109 2 110 2 111 2 112 2 113 2 114 2 115...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 656410143989222955
Test #28:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1824kb,1808kb
input:
1 410366615149657534
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 56 2266 54 2212 26 1083 2356 2421 2362 2421 16 690 26 1088 53 2153 6 266 2351 2421 56 2275 47 1931 13 543 891 2421 1137 2421 1501 2421 98 2421 54 2216 25 1025 30 12...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 56 2266 54 2212 26 1083 2356 2421 2362 2421 16 690 26 1088 53 2153 6 266 2351 2421 56 2275 47 1931 13 543 891 2421 1137 2421 1501 2421 98 2421 54 2216 25 1025 30 12...
output:
2 2501 2369 1 2 2 3 2 102 2 103 2 104 2 105 2 106 2 107 2 108 2 109 2 110 2 111 2 112 2 113 2 114 2 115 2 116 2 117 2 118 2 119 2 120 2 122 2 123 2 124 2 125 2 126 2 127 2 128 2 129 2 130 2 131 2 132 2 133 2 134 2 135 2 136 2 137 2 138 2 139 2 140 2 141 3 4 3 142 3 143 3 144 3 145 3 146 3 147 3 148 ...
input:
2 2501 2369 1 2 2 3 2 102 2 103 2 104 2 105 2 106 2 107 2 108 2 109 2 110 2 111 2 112 2 113 2 114 2 115 2 116 2 117 2 118 2 119 2 120 2 122 2 123 2 124 2 125 2 126 2 127 2 128 2 129 2 130 2 131 2 132 2 133 2 134 2 135 2 136 2 137 2 138 2 139 2 140 2 141 3 4 3 142 3 143 3 144 3 145 3 146 3 147 3 148 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 410366615149657534
Test #29:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1828kb,1808kb
input:
1 298090682780948428
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 286 2421 272 2421 40 1643 2356 2421 2362 2421 28 1170 40 1648 133 2421 9 386 2351 2421 295 2421 30 31 18 743 1051 2421 1217 2421 1821 2421 818 2421 276 2421 39 1585...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 2501 286 2421 272 2421 40 1643 2356 2421 2362 2421 28 1170 40 1648 133 2421 9 386 2351 2421 295 2421 30 31 18 743 1051 2421 1217 2421 1821 2421 818 2421 276 2421 39 1585...
output:
2 2501 2369 1 2 2 3 3 4 3 142 3 143 3 144 3 145 3 146 3 147 3 148 3 149 3 150 3 151 3 152 3 153 3 154 3 155 3 156 3 157 3 158 3 159 3 160 3 162 3 163 3 164 3 165 3 166 3 167 3 168 3 169 3 170 3 171 3 172 3 173 3 174 3 175 3 176 3 177 3 178 3 179 3 180 3 181 4 5 4 182 4 183 4 184 4 185 4 186 4 187 4 ...
input:
2 2501 2369 1 2 2 3 3 4 3 142 3 143 3 144 3 145 3 146 3 147 3 148 3 149 3 150 3 151 3 152 3 153 3 154 3 155 3 156 3 157 3 158 3 159 3 160 3 162 3 163 3 164 3 165 3 166 3 167 3 168 3 169 3 170 3 171 3 172 3 173 3 174 3 175 3 176 3 177 3 178 3 179 3 180 3 181 4 5 4 182 4 183 4 184 4 185 4 186 4 187 4 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 298090682780948428
Test #30:
score: 0
Wrong Answer
time: 0ms = 0ms + 0ms
memory: 1824kb,1796kb
input:
3 969441916331132577
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 2501 166 2461 152 2461 42 1723 2276 2461 2282 2461 28 1170 42 1728 52 53 11 466 2271 2461 175 2461 59 2411 25 1023 891 2461 1017 2461 1541 2461 538 2461 156 2461 39 1585...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 2501 166 2461 152 2461 42 1723 2276 2461 2282 2461 28 1170 42 1728 52 53 11 466 2271 2461 175 2461 59 2411 25 1023 891 2461 1017 2461 1541 2461 538 2461 156 2461 39 1585...
output:
4 2501 1359 60 2461 102 2461 103 2461 104 2461 105 2461 106 2461 107 2461 108 2461 109 2461 110 2461 111 2461 112 2461 113 2461 114 2461 115 2461 116 2461 117 2461 118 2461 119 2461 120 2461 121 2461 122 2461 123 2461 124 2461 125 2461 126 2461 127 2461 128 2461 129 2461 130 2461 131 2461 132 2461 1...
input:
4 2501 1359 60 2461 102 2461 103 2461 104 2461 105 2461 106 2461 107 2461 108 2461 109 2461 110 2461 111 2461 112 2461 113 2461 114 2461 115 2461 116 2461 117 2461 118 2461 119 2461 120 2461 121 2461 122 2461 123 2461 124 2461 125 2461 126 2461 127 2461 128 2461 129 2461 130 2461 131 2461 132 2461 1...
output:
9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4 Incorrect answer.