QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#432354 | #8726. Magic Show | nhuang685# | 0 | 2ms | 1896kb | C++20 | 1.1kb | 2024-06-07 03:54:44 | 2024-06-07 03:54:45 |
Alice
#include "Alice.h"
#include <bits/stdc++.h>
auto Alice() -> std::vector<std::pair<int, int>> {
const int n = 5000;
const int LG = 60;
std::mt19937 rng(1);
std::vector<int> gr(n + 1);
for (int i = 0; i <= n; ++i) {
gr[i] = i % LG;
}
std::shuffle(gr.begin(), gr.end(), rng);
long long x = setN(n);
std::vector<std::pair<int, int>> v;
v.emplace_back(1, 2);
for (int i = 3; i <= n; ++i) {
if ((1ll << gr[i]) & x) {
v.emplace_back(2, i);
} else {
v.emplace_back(1, i);
}
}
return v;
}
Bob
#include "Bob.h"
#include <bits/stdc++.h>
auto Bob(std::vector<std::pair<int, int>> V) -> long long {
const int n = 5000;
const int LG = 60;
std::mt19937 rng(1);
std::vector<int> gr(n + 1);
for (int i = 0; i <= n; ++i) {
gr[i] = i % LG;
}
std::shuffle(gr.begin(), gr.end(), rng);
const auto v = V;
std::vector<int> par(n + 1, -1);
for (auto [a, b] : v) {
par[b] = a;
}
long long x = 0;
for (int i = 3; i <= n; ++i) {
if (par[i] != -1) {
if (par[i] == 2) {
x |= (1ll << gr[i]);
}
}
}
return x;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 5
Accepted
time: 1ms = 0ms + 1ms
memory: 1892kb,1896kb
input:
1 4005
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 2 4 1 5 1 6 2 7 1 8 1 9 2 10 1 11 1 12 1 13 1 14 1 15 2 16 1 17 1 18 2 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 2 30 1 31 1 32 1 33 1 34 1 35 1 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 2 4 1 5 1 6 2 7 1 8 1 9 2 10 1 11 1 12 1 13 1 14 1 15 2 16 1 17 1 18 2 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 2 30 1 31 1 32 1 33 1 34 1 35 1 ...
output:
2 5000 4688 1 2 1 3 1 5 1 6 1 9 1 11 1 12 1 13 1 15 1 17 1 18 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 31 1 32 1 33 1 34 1 36 1 37 1 38 1 39 1 41 1 43 1 45 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 72 1 73 1 74 1 75 1 7...
input:
2 5000 4688 1 2 1 3 1 5 1 6 1 9 1 11 1 12 1 13 1 15 1 17 1 18 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 31 1 32 1 33 1 34 1 36 1 37 1 38 1 39 1 41 1 43 1 45 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 72 1 73 1 74 1 75 1 7...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 4005
Test #2:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1896kb
input:
1 459
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 2 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 2 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 ...
output:
2 5000 4688 1 2 1 3 1 4 1 5 1 6 1 7 1 9 1 11 1 12 1 13 1 15 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 36 1 37 1 38 1 39 1 41 1 42 1 43 1 45 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 57 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 69 1 70 1 72 ...
input:
2 5000 4688 1 2 1 3 1 4 1 5 1 6 1 7 1 9 1 11 1 12 1 13 1 15 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 36 1 37 1 38 1 39 1 41 1 42 1 43 1 45 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 57 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 69 1 70 1 72 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 459
Test #3:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1888kb,1896kb
input:
1 2495
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 1 4 1 5 1 6 2 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 2 16 1 17 1 18 2 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 1 4 1 5 1 6 2 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 2 16 1 17 1 18 2 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 ...
output:
2 5000 4688 1 2 1 3 1 4 1 5 1 6 1 9 1 11 1 12 1 13 1 15 1 17 1 18 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 36 1 37 1 38 1 39 1 41 1 42 1 43 1 45 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 69 1 70 1 72 1 73 1 75...
input:
2 5000 4688 1 2 1 3 1 4 1 5 1 6 1 9 1 11 1 12 1 13 1 15 1 17 1 18 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 36 1 37 1 38 1 39 1 41 1 42 1 43 1 45 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 69 1 70 1 72 1 73 1 75...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 2495
Test #4:
score: 0
Wrong Answer
time: 0ms = 0ms + 0ms
memory: 1888kb,1892kb
input:
3 1560
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 5000 1 2 1 3 2 4 1 5 1 6 1 7 1 8 1 9 2 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 2 30 1 31 1 32 1 33 1 34 1 35 1 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 5000 1 2 1 3 2 4 1 5 1 6 1 7 1 8 1 9 2 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 2 30 1 31 1 32 1 33 1 34 1 35 1 ...
output:
4 5000 4661 1 2 1 3 1 5 1 6 1 7 1 8 1 9 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 41 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 ...
input:
4 5000 4661 1 2 1 3 1 5 1 6 1 7 1 8 1 9 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 41 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 ...
output:
9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4 Incorrect answer.
Subtask #2:
score: 0
Wrong Answer
Test #13:
score: 30
Accepted
time: 1ms = 0ms + 1ms
memory: 1892kb,1896kb
input:
1 17476204
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 2 4 1 5 1 6 2 7 1 8 1 9 2 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 2 19 1 20 1 21 1 22 2 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 2 4 1 5 1 6 2 7 1 8 1 9 2 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 2 19 1 20 1 21 1 22 2 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 ...
output:
2 5000 4688 1 2 1 3 1 5 1 6 1 9 1 11 1 12 1 13 1 15 1 16 1 17 1 18 1 20 1 21 1 22 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 36 1 37 1 38 1 39 1 41 1 42 1 45 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 59 1 61 1 62 1 64 1 66 1 67 1 68 1 69 1 70 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 7...
input:
2 5000 4688 1 2 1 3 1 5 1 6 1 9 1 11 1 12 1 13 1 15 1 16 1 17 1 18 1 20 1 21 1 22 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 36 1 37 1 38 1 39 1 41 1 42 1 45 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 59 1 61 1 62 1 64 1 66 1 67 1 68 1 69 1 70 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 7...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 17476204
Test #14:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1892kb
input:
1 11926600
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 1 4 1 5 1 6 2 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 2 15 1 16 1 17 1 18 1 19 1 20 2 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 2 30 1 31 1 32 2 33 2 34 1 35 1 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 1 4 1 5 1 6 2 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 2 15 1 16 1 17 1 18 1 19 1 20 2 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 2 30 1 31 1 32 2 33 2 34 1 35 1 ...
output:
2 5000 4688 1 2 1 3 1 4 1 5 1 6 1 9 1 11 1 12 1 13 1 16 1 17 1 18 1 19 1 20 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 31 1 32 1 36 1 37 1 38 1 39 1 41 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 59 1 60 1 62 1 63 1 65 1 66 1 67 1 68 1 69 1 70 1 72 1 73 1 74 1 75 1 76 1 78 1 80 1 81 1 83...
input:
2 5000 4688 1 2 1 3 1 4 1 5 1 6 1 9 1 11 1 12 1 13 1 16 1 17 1 18 1 19 1 20 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 31 1 32 1 36 1 37 1 38 1 39 1 41 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 59 1 60 1 62 1 63 1 65 1 66 1 67 1 68 1 69 1 70 1 72 1 73 1 74 1 75 1 76 1 78 1 80 1 81 1 83...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 11926600
Test #15:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1888kb,1896kb
input:
1 16602378
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 1 4 2 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 2 14 2 15 2 16 1 17 1 18 1 19 1 20 2 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 2 29 2 30 1 31 1 32 2 33 2 34 1 35 1 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 1 4 2 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 2 14 2 15 2 16 1 17 1 18 1 19 1 20 2 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 2 29 2 30 1 31 1 32 2 33 2 34 1 35 1 ...
output:
2 5000 4688 1 2 1 3 1 4 1 6 1 7 1 9 1 11 1 12 1 13 1 17 1 18 1 19 1 20 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 31 1 32 1 36 1 37 1 38 1 39 1 41 1 43 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 57 1 58 1 59 1 60 1 62 1 63 1 65 1 66 1 67 1 69 1 70 1 72 1 73 1 74 1 75 1 76 1 78 1 80 1 81 1 83 1 84 1 85...
input:
2 5000 4688 1 2 1 3 1 4 1 6 1 7 1 9 1 11 1 12 1 13 1 17 1 18 1 19 1 20 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 31 1 32 1 36 1 37 1 38 1 39 1 41 1 43 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 57 1 58 1 59 1 60 1 62 1 63 1 65 1 66 1 67 1 69 1 70 1 72 1 73 1 74 1 75 1 76 1 78 1 80 1 81 1 83 1 84 1 85...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 16602378
Test #16:
score: 0
Wrong Answer
time: 0ms = 0ms + 0ms
memory: 1892kb,1892kb
input:
3 13129243
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 5000 1 2 1 3 2 4 2 5 1 6 1 7 1 8 1 9 2 10 1 11 1 12 1 13 2 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 2 29 2 30 1 31 1 32 1 33 1 34 1 35 1 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 5000 1 2 1 3 2 4 2 5 1 6 1 7 1 8 1 9 2 10 1 11 1 12 1 13 2 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 2 29 2 30 1 31 1 32 1 33 1 34 1 35 1 ...
output:
4 5000 4075 1 2 1 3 1 6 1 7 1 8 1 9 1 11 1 12 1 13 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 41 1 43 1 44 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 69 1 70...
input:
4 5000 4075 1 2 1 3 1 6 1 7 1 8 1 9 1 11 1 12 1 13 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 41 1 43 1 44 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 69 1 70...
output:
9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4 Incorrect answer.
Subtask #3:
score: 0
Wrong Answer
Test #25:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1896kb
input:
1 355365355024496523
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 2 4 1 5 1 6 1 7 2 8 1 9 2 10 1 11 1 12 1 13 1 14 2 15 2 16 1 17 1 18 1 19 2 20 2 21 1 22 2 23 1 24 1 25 2 26 2 27 1 28 1 29 2 30 1 31 2 32 2 33 2 34 2 35 1 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 2 4 1 5 1 6 1 7 2 8 1 9 2 10 1 11 1 12 1 13 1 14 2 15 2 16 1 17 1 18 1 19 2 20 2 21 1 22 2 23 1 24 1 25 2 26 2 27 1 28 1 29 2 30 1 31 2 32 2 33 2 34 2 35 1 ...
output:
2 5000 4688 1 2 1 3 1 5 1 6 1 7 1 9 1 11 1 12 1 13 1 17 1 18 1 19 1 22 1 24 1 25 1 28 1 29 1 31 1 36 1 37 1 38 1 41 1 43 1 47 1 49 1 50 1 51 1 54 1 55 1 58 1 70 1 72 1 73 1 74 1 75 1 76 1 78 1 79 1 83 1 84 1 86 1 87 1 88 1 89 1 93 1 96 1 100 1 102 1 103 1 106 1 111 1 116 1 118 1 121 1 123 1 124 1 12...
input:
2 5000 4688 1 2 1 3 1 5 1 6 1 7 1 9 1 11 1 12 1 13 1 17 1 18 1 19 1 22 1 24 1 25 1 28 1 29 1 31 1 36 1 37 1 38 1 41 1 43 1 47 1 49 1 50 1 51 1 54 1 55 1 58 1 70 1 72 1 73 1 74 1 75 1 76 1 78 1 79 1 83 1 84 1 86 1 87 1 88 1 89 1 93 1 96 1 100 1 102 1 103 1 106 1 111 1 116 1 118 1 121 1 123 1 124 1 12...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 355365355024496523
Test #26:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1896kb
input:
1 727827999106414164
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 2 4 2 5 2 6 1 7 2 8 2 9 2 10 2 11 2 12 1 13 2 14 1 15 1 16 2 17 1 18 2 19 2 20 2 21 1 22 2 23 1 24 1 25 2 26 1 27 1 28 2 29 2 30 1 31 1 32 1 33 1 34 2 35 2 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 2 4 2 5 2 6 1 7 2 8 2 9 2 10 2 11 2 12 1 13 2 14 1 15 1 16 2 17 1 18 2 19 2 20 2 21 1 22 2 23 1 24 1 25 2 26 1 27 1 28 2 29 2 30 1 31 1 32 1 33 1 34 2 35 2 ...
output:
2 5000 4688 1 2 1 3 1 7 1 13 1 15 1 16 1 18 1 22 1 24 1 25 1 27 1 28 1 31 1 32 1 33 1 34 1 38 1 39 1 41 1 43 1 50 1 53 1 54 1 56 1 57 1 59 1 60 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 73 1 75 1 77 1 78 1 79 1 80 1 82 1 84 1 85 1 90 1 92 1 94 1 101 1 104 1 106 1 108 1 109 1 110 1 112 1 113 1 115 1 117 1...
input:
2 5000 4688 1 2 1 3 1 7 1 13 1 15 1 16 1 18 1 22 1 24 1 25 1 27 1 28 1 31 1 32 1 33 1 34 1 38 1 39 1 41 1 43 1 50 1 53 1 54 1 56 1 57 1 59 1 60 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 73 1 75 1 77 1 78 1 79 1 80 1 82 1 84 1 85 1 90 1 92 1 94 1 101 1 104 1 106 1 108 1 109 1 110 1 112 1 113 1 115 1 117 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 727827999106414164
Test #27:
score: 65
Accepted
time: 2ms = 1ms + 1ms
memory: 1892kb,1896kb
input:
1 656410143989222955
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 2 4 2 5 1 6 2 7 1 8 1 9 2 10 1 11 1 12 1 13 2 14 1 15 1 16 2 17 1 18 1 19 2 20 2 21 1 22 1 23 1 24 2 25 1 26 2 27 1 28 2 29 2 30 1 31 2 32 2 33 1 34 2 35 1 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 2 4 2 5 1 6 2 7 1 8 1 9 2 10 1 11 1 12 1 13 2 14 1 15 1 16 2 17 1 18 1 19 2 20 2 21 1 22 1 23 1 24 2 25 1 26 2 27 1 28 2 29 2 30 1 31 2 32 2 33 1 34 2 35 1 ...
output:
2 5000 4688 1 2 1 3 1 6 1 9 1 11 1 12 1 13 1 15 1 16 1 18 1 19 1 22 1 23 1 24 1 26 1 28 1 31 1 34 1 36 1 37 1 38 1 39 1 41 1 45 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 56 1 58 1 59 1 62 1 63 1 64 1 67 1 69 1 70 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 81 1 82 1 86 1 88 1 89 1 91 1 93 1 95 1 96 1 97 1 ...
input:
2 5000 4688 1 2 1 3 1 6 1 9 1 11 1 12 1 13 1 15 1 16 1 18 1 19 1 22 1 23 1 24 1 26 1 28 1 31 1 34 1 36 1 37 1 38 1 39 1 41 1 45 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 56 1 58 1 59 1 62 1 63 1 64 1 67 1 69 1 70 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 81 1 82 1 86 1 88 1 89 1 91 1 93 1 95 1 96 1 97 1 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 656410143989222955
Test #28:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1896kb
input:
1 410366615149657534
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 2 3 1 4 1 5 1 6 2 7 2 8 1 9 1 10 1 11 2 12 2 13 1 14 2 15 2 16 1 17 2 18 2 19 1 20 1 21 1 22 1 23 1 24 2 25 1 26 2 27 2 28 1 29 2 30 1 31 2 32 2 33 1 34 1 35 1 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 2 3 1 4 1 5 1 6 2 7 2 8 1 9 1 10 1 11 2 12 2 13 1 14 2 15 2 16 1 17 2 18 2 19 1 20 1 21 1 22 1 23 1 24 2 25 1 26 2 27 2 28 1 29 2 30 1 31 2 32 2 33 1 34 1 35 1 ...
output:
2 5000 4688 1 2 1 4 1 5 1 6 1 9 1 11 1 17 1 20 1 21 1 22 1 23 1 24 1 26 1 29 1 31 1 34 1 36 1 39 1 41 1 48 1 49 1 52 1 55 1 57 1 58 1 59 1 61 1 63 1 64 1 66 1 69 1 70 1 73 1 75 1 76 1 78 1 79 1 80 1 82 1 83 1 85 1 87 1 88 1 89 1 90 1 91 1 92 1 94 1 98 1 99 1 100 1 102 1 103 1 105 1 109 1 110 1 113 1...
input:
2 5000 4688 1 2 1 4 1 5 1 6 1 9 1 11 1 17 1 20 1 21 1 22 1 23 1 24 1 26 1 29 1 31 1 34 1 36 1 39 1 41 1 48 1 49 1 52 1 55 1 57 1 58 1 59 1 61 1 63 1 64 1 66 1 69 1 70 1 73 1 75 1 76 1 78 1 79 1 80 1 82 1 83 1 85 1 87 1 88 1 89 1 90 1 91 1 92 1 94 1 98 1 99 1 100 1 102 1 103 1 105 1 109 1 110 1 113 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 410366615149657534
Test #29:
score: 65
Accepted
time: 1ms = 1ms + 0ms
memory: 1888kb,1892kb
input:
1 298090682780948428
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 2 4 1 5 2 6 1 7 2 8 2 9 2 10 1 11 2 12 1 13 1 14 1 15 2 16 2 17 1 18 2 19 1 20 1 21 2 22 2 23 1 24 1 25 2 26 2 27 1 28 1 29 2 30 2 31 2 32 1 33 2 34 2 35 1 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 5000 1 2 1 3 2 4 1 5 2 6 1 7 2 8 2 9 2 10 1 11 2 12 1 13 1 14 1 15 2 16 2 17 1 18 2 19 1 20 1 21 2 22 2 23 1 24 1 25 2 26 2 27 1 28 1 29 2 30 2 31 2 32 1 33 2 34 2 35 1 ...
output:
2 5000 4688 1 2 1 3 1 5 1 7 1 11 1 13 1 15 1 18 1 20 1 21 1 24 1 25 1 28 1 29 1 33 1 36 1 38 1 39 1 43 1 50 1 53 1 54 1 55 1 57 1 59 1 60 1 61 1 65 1 66 1 68 1 69 1 74 1 76 1 77 1 78 1 79 1 80 1 81 1 84 1 85 1 88 1 90 1 92 1 93 1 94 1 97 1 98 1 106 1 108 1 110 1 112 1 113 1 115 1 116 1 120 1 121 1 1...
input:
2 5000 4688 1 2 1 3 1 5 1 7 1 11 1 13 1 15 1 18 1 20 1 21 1 24 1 25 1 28 1 29 1 33 1 36 1 38 1 39 1 43 1 50 1 53 1 54 1 55 1 57 1 59 1 60 1 61 1 65 1 66 1 68 1 69 1 74 1 76 1 77 1 78 1 79 1 80 1 81 1 84 1 85 1 88 1 90 1 92 1 93 1 94 1 97 1 98 1 106 1 108 1 110 1 112 1 113 1 115 1 116 1 120 1 121 1 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 298090682780948428
Test #30:
score: 0
Wrong Answer
time: 0ms = 0ms + 0ms
memory: 1892kb,1872kb
input:
3 969441916331132577
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 5000 1 2 1 3 2 4 2 5 1 6 1 7 2 8 1 9 2 10 1 11 1 12 2 13 2 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 2 22 2 23 1 24 1 25 1 26 1 27 1 28 2 29 2 30 2 31 1 32 1 33 1 34 1 35 1 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 5000 1 2 1 3 2 4 2 5 1 6 1 7 2 8 1 9 2 10 1 11 1 12 2 13 2 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 2 22 2 23 1 24 1 25 1 26 1 27 1 28 2 29 2 30 2 31 1 32 1 33 1 34 1 35 1 ...
output:
4 5000 2750 1 2 1 3 1 6 1 7 1 9 1 11 1 12 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 24 1 25 1 26 1 27 1 28 1 32 1 33 1 34 1 35 1 36 1 40 1 45 1 46 1 47 1 49 1 51 1 52 1 53 1 54 1 56 1 58 1 61 1 64 1 68 1 71 1 74 1 76 1 77 1 78 1 79 1 81 1 82 1 83 1 84 1 86 1 87 1 88 1 89 1 91 1 93 1 96 1 97 1 98 1 99 1 1...
input:
4 5000 2750 1 2 1 3 1 6 1 7 1 9 1 11 1 12 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 24 1 25 1 26 1 27 1 28 1 32 1 33 1 34 1 35 1 36 1 40 1 45 1 46 1 47 1 49 1 51 1 52 1 53 1 54 1 56 1 58 1 61 1 64 1 68 1 71 1 74 1 76 1 77 1 78 1 79 1 81 1 82 1 83 1 84 1 86 1 87 1 88 1 89 1 91 1 93 1 96 1 97 1 98 1 99 1 1...
output:
9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4 Incorrect answer.