QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#880824 | #3088. Games | ohwphil | AC ✓ | 413ms | 9828kb | C++17 | 5.6kb | 2025-02-03 21:16:13 | 2025-02-03 21:16:14 |
Judging History
answer
#include <bits/stdc++.h>
const long long MOD = 998244353;
const long long SEVENTH_ROOT = 779057549;
const long long INV_SEVENTH_ROOT = 690489812;
using namespace std;
int64_t SafeMod(int64_t x) {
return (x % MOD + MOD) % MOD;
}
int64_t Exponential(int64_t a, int64_t b) {
int64_t res = 1;
while (b) {
if (b & 1) {
res = SafeMod(res * a);
}
a = SafeMod(a * a);
b >>= 1;
}
return res;
}
/*
for (int64_t len = 1; len < three_pow[n]; len *= 3) {
for (int64_t i = 0; i < three_pow[n]; i += 3 * len) {
for (int64_t j = 0; j < len; j++) {
int64_t x = a[i + j];
int64_t y = a[i + len + j];
int64_t z = a[i + 2 * len + j];
a[i + j] = (x + y + z) % MOD;
a[i + len + j] = (x + MOD - y + z) % MOD;
a[i + 2 * len + j] = (x + y + MOD - z) % MOD;
}
}
}
*/
// void ternary_xor_fwht(int64_t n, vector<ExtendedField>& a, bool inv = false) {
// ExtendedField omega_n = inv ? omega_squared : omega;
// for (int64_t len = 1; len < three_pow[n]; len *= 3) {
// for (int64_t i = 0; i < three_pow[n]; i += 3 * len) {
// for (int64_t j = 0; j < len; j++) {
// ExtendedField x = a[i + j];
// ExtendedField y = a[i + len + j];
// ExtendedField z = a[i + 2 * len + j];
// a[i + j] = x + y + z;
// a[i + len + j] = x + omega_n * y + omega_n * omega_n * z;
// a[i + 2 * len + j] = x + omega_n * omega_n * y + omega_n * z;
// }
// }
// }
// if (inv) {
// int64_t inv3 = INV3;
// for (int64_t i = 0; i < three_pow[n]; i++) {
// a[i] = a[i] * ExtendedField(Exponential(three_pow[n], MOD - 2));
// }
// }
// }
// vector<ExtendedField> xor_convolute_pow(int64_t n, int64_t k, vector<ExtendedField>& a) {
// ternary_xor_fwht(n, a);
// for (int64_t i = 0; i < three_pow[n]; i++) {
// a[i] = Exponential(a[i], k);
// }
// ternary_xor_fwht(n, a, true);
// return a;
// }
void seven_fwht(vector<int64_t>& a, bool inv = false) {
int64_t CURR_ROOT = inv ? INV_SEVENTH_ROOT : SEVENTH_ROOT;
int64_t FIRST_POWER, SECOND_POWER, THIRD_POWER, FOURTH_POWER, FIFTH_POWER, SIXTH_POWER, SEVENTH_POWER;
FIRST_POWER = CURR_ROOT;
SECOND_POWER = FIRST_POWER * CURR_ROOT % MOD;
THIRD_POWER = SECOND_POWER * CURR_ROOT % MOD;
FOURTH_POWER = THIRD_POWER * CURR_ROOT % MOD;
FIFTH_POWER = FOURTH_POWER * CURR_ROOT % MOD;
SIXTH_POWER = FIFTH_POWER * CURR_ROOT % MOD;
SEVENTH_POWER = SIXTH_POWER * CURR_ROOT % MOD;
for (int64_t len = 1; len < a.size(); len *= 7) {
for (int64_t i = 0; i < a.size(); i += 7 * len) {
for (int64_t j = 0; j < len; j++) {
int64_t a0 = a[i + j];
int64_t a1 = a[i + len + j];
int64_t a2 = a[i + 2 * len + j];
int64_t a3 = a[i + 3 * len + j];
int64_t a4 = a[i + 4 * len + j];
int64_t a5 = a[i + 5 * len + j];
int64_t a6 = a[i + 6 * len + j];
int64_t b0 = ((((((a0 + a1) % MOD + a2) % MOD + a3) % MOD + a4) % MOD + a5) % MOD + a6) % MOD;
int64_t b1 = ((((((a0 + a1 * FIRST_POWER) % MOD + a2 * SECOND_POWER) % MOD + a3 * THIRD_POWER) % MOD + a4 * FOURTH_POWER) % MOD + a5 * FIFTH_POWER) % MOD + a6 * SIXTH_POWER) % MOD;
int64_t b2 = ((((((a0 + a1 * SECOND_POWER) % MOD + a2 * FOURTH_POWER) % MOD + a3 * SIXTH_POWER) % MOD + a4 * FIRST_POWER) % MOD + a5 * THIRD_POWER) % MOD + a6 * FIFTH_POWER) % MOD;
int64_t b3 = ((((((a0 + a1 * THIRD_POWER) % MOD + a2 * SIXTH_POWER) % MOD + a3 * SECOND_POWER) % MOD + a4 * FIFTH_POWER) % MOD + a5 * FIRST_POWER) % MOD + a6 * FOURTH_POWER) % MOD;
int64_t b4 = ((((((a0 + a1 * FOURTH_POWER) % MOD + a2 * FIRST_POWER) % MOD + a3 * FIFTH_POWER) % MOD + a4 * SECOND_POWER) % MOD + a5 * SIXTH_POWER) % MOD + a6 * THIRD_POWER) % MOD;
int64_t b5 = ((((((a0 + a1 * FIFTH_POWER) % MOD + a2 * THIRD_POWER) % MOD + a3 * FIRST_POWER) % MOD + a4 * SIXTH_POWER) % MOD + a5 * FOURTH_POWER) % MOD + a6 * SECOND_POWER) % MOD;
int64_t b6 = ((((((a0 + a1 * SIXTH_POWER) % MOD + a2 * FIFTH_POWER) % MOD + a3 * FOURTH_POWER) % MOD + a4 * THIRD_POWER) % MOD + a5 * SECOND_POWER) % MOD + a6 * FIRST_POWER) % MOD;
a[i + j] = b0;
a[i + len + j] = b1;
a[i + 2 * len + j] = b2;
a[i + 3 * len + j] = b3;
a[i + 4 * len + j] = b4;
a[i + 5 * len + j] = b5;
a[i + 6 * len + j] = b6;
}
}
}
if (inv) {
int64_t inv_len = Exponential(a.size(), MOD - 2);
for (int64_t i = 0; i < a.size(); i++) {
a[i] = a[i] * inv_len % MOD;
}
}
}
int64_t n, m, k;
vector<int64_t> a;
signed main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> n >> k;
a.resize(Exponential(7, 7));
for (int64_t i = 0; i < n; i++) {
cin >> m;
int64_t x = 0, mask = 64;
while (mask) {
x *= 7;
if (m & mask) {
x++;
}
mask >>= 1;
}
a[x]++;
}
seven_fwht(a);
for (int64_t i = 0; i < Exponential(7, 7); i++) {
a[i] = Exponential(a[i], k);
}
seven_fwht(a, true);
cout << a[0] << '\n';
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 408ms
memory: 9828kb
input:
64 972948592742704203 1 3 4 5 6 7 9 10 11 12 13 14 18 19 20 21 23 26 28 31 33 34 35 37 38 39 41 43 44 47 48 49 52 53 54 55 58 60 61 62 67 69 70 72 74 76 77 78 79 82 83 84 85 86 87 89 90 92 93 94 95 96 98 100
output:
414036863
result:
ok single line: '414036863'
Test #2:
score: 0
Accepted
time: 384ms
memory: 9824kb
input:
81 45343239642193514 1 3 4 6 7 8 9 12 13 14 16 17 18 19 20 21 22 25 26 27 28 29 30 31 32 33 34 37 38 39 40 41 42 44 45 46 47 49 50 51 52 53 56 57 58 59 60 61 63 64 65 66 67 68 69 70 72 73 74 75 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 95 96 97 98 100
output:
70277639
result:
ok single line: '70277639'
Test #3:
score: 0
Accepted
time: 400ms
memory: 9824kb
input:
76 443624042595972229 2 3 4 5 6 7 8 9 10 11 14 15 17 18 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 39 40 42 44 45 46 47 48 49 50 51 53 54 55 56 58 60 61 62 64 65 67 68 69 70 72 73 74 76 77 78 79 80 81 82 83 85 86 87 91 92 93 95 96 97 100
output:
335549827
result:
ok single line: '335549827'
Test #4:
score: 0
Accepted
time: 394ms
memory: 9824kb
input:
93 289918859682335475 1 2 3 4 5 6 7 8 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 38 39 40 41 42 44 45 46 47 48 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 87 88 89 90 91 92 93 94 95 96 97 98 99 100
output:
565869271
result:
ok single line: '565869271'
Test #5:
score: 0
Accepted
time: 384ms
memory: 9824kb
input:
65 43423761853578977 1 2 3 5 6 8 9 10 11 12 14 17 19 21 22 23 24 25 26 27 29 31 32 33 34 36 38 41 44 45 46 47 48 49 50 51 54 55 56 57 60 61 64 67 71 72 73 74 75 76 77 80 83 84 85 86 87 91 93 94 95 96 97 98 99
output:
249282710
result:
ok single line: '249282710'
Test #6:
score: 0
Accepted
time: 406ms
memory: 9824kb
input:
59 535595204203356116 2 3 4 5 9 10 12 15 16 17 18 20 22 23 24 25 26 30 33 34 35 39 40 41 44 48 49 50 51 53 54 56 57 58 59 60 62 64 65 66 71 72 73 76 77 78 79 80 82 83 84 87 88 92 95 96 97 99 100
output:
141817056
result:
ok single line: '141817056'
Test #7:
score: 0
Accepted
time: 396ms
memory: 9824kb
input:
99 288590854780573717 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 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...
output:
654044999
result:
ok single line: '654044999'
Test #8:
score: 0
Accepted
time: 405ms
memory: 9828kb
input:
52 911717802412992018 1 2 4 11 12 13 16 17 18 21 23 24 26 27 28 30 33 34 36 38 43 44 47 48 49 50 51 55 61 64 65 66 69 70 71 72 73 74 76 78 79 80 81 83 87 88 89 90 93 97 99 100
output:
583925198
result:
ok single line: '583925198'
Test #9:
score: 0
Accepted
time: 402ms
memory: 9820kb
input:
87 364639589999920149 1 2 4 5 6 7 8 9 10 11 12 13 14 17 18 20 22 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 41 42 43 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 79 80 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100
output:
953641836
result:
ok single line: '953641836'
Test #10:
score: 0
Accepted
time: 405ms
memory: 9824kb
input:
82 943457195545475316 1 2 3 4 5 6 7 8 9 11 12 13 14 15 16 17 18 19 20 23 25 26 27 28 29 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 49 50 51 52 53 54 55 56 57 59 60 61 62 63 65 66 68 69 70 71 75 76 78 79 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 99
output:
189619159
result:
ok single line: '189619159'
Test #11:
score: 0
Accepted
time: 406ms
memory: 9824kb
input:
68 547607288939922717 1 2 3 6 7 9 11 13 15 16 17 18 19 20 21 23 24 27 29 31 33 34 35 36 38 39 40 42 43 44 46 48 49 51 54 55 56 57 58 59 60 63 64 65 67 69 70 71 72 74 75 76 77 79 80 81 82 83 84 85 86 87 89 91 93 94 97 99
output:
356952684
result:
ok single line: '356952684'
Test #12:
score: 0
Accepted
time: 397ms
memory: 9824kb
input:
52 194837994528339535 1 3 4 8 9 13 14 16 18 20 22 23 24 26 27 28 30 31 34 35 39 40 41 42 44 45 46 47 50 52 53 55 56 59 60 61 62 63 66 67 68 71 73 76 77 78 79 87 89 91 92 94
output:
207589353
result:
ok single line: '207589353'
Test #13:
score: 0
Accepted
time: 409ms
memory: 9828kb
input:
73 827150950425024398 1 2 3 5 6 8 9 10 11 12 14 17 18 19 22 23 24 25 26 28 29 30 31 32 33 35 36 37 38 39 40 42 43 44 45 49 50 52 53 55 58 59 60 61 62 63 64 66 67 70 72 73 74 75 76 77 78 79 80 81 83 84 85 87 91 93 94 95 96 97 98 99 100
output:
844433207
result:
ok single line: '844433207'
Test #14:
score: 0
Accepted
time: 393ms
memory: 9824kb
input:
66 116662376462182935 1 2 5 6 7 8 11 12 13 14 17 19 20 21 22 23 25 26 28 29 30 31 34 35 36 37 38 39 43 45 46 47 48 49 50 53 57 59 61 63 64 67 68 69 71 72 74 75 76 77 78 79 83 84 85 86 87 88 89 90 92 93 94 95 97 99
output:
524522232
result:
ok single line: '524522232'
Test #15:
score: 0
Accepted
time: 408ms
memory: 9828kb
input:
75 985732312465432048 1 2 4 5 7 8 10 11 12 13 14 15 16 17 18 20 21 25 26 27 28 29 30 31 32 35 36 37 40 41 42 43 45 46 47 48 50 51 52 53 54 55 56 57 59 60 61 63 64 65 66 67 68 70 71 72 73 74 75 76 77 79 81 82 84 87 88 89 90 92 93 94 97 99 100
output:
921010873
result:
ok single line: '921010873'
Test #16:
score: 0
Accepted
time: 396ms
memory: 9824kb
input:
74 236726722741977513 1 3 4 6 7 8 9 10 11 13 14 15 16 17 18 19 21 23 24 25 26 27 28 29 30 31 33 34 35 36 37 40 41 42 43 44 45 46 48 49 50 51 53 56 60 61 62 65 66 67 68 69 71 72 73 74 75 77 78 79 80 83 84 86 87 88 89 90 91 92 95 96 97 99
output:
749384651
result:
ok single line: '749384651'
Test #17:
score: 0
Accepted
time: 400ms
memory: 9652kb
input:
80 464371660998155216 1 3 4 5 6 7 8 11 13 14 17 18 19 20 21 22 24 25 27 28 29 30 31 32 35 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 65 66 67 68 69 70 71 72 73 75 77 80 81 82 83 84 85 86 87 89 90 91 92 94 95 96 97 99 100
output:
395791764
result:
ok single line: '395791764'
Test #18:
score: 0
Accepted
time: 399ms
memory: 9828kb
input:
51 282806839759425713 1 2 6 8 10 11 13 16 17 18 21 24 25 27 29 31 33 34 35 38 39 41 42 47 48 50 55 58 61 62 63 64 65 72 74 76 77 78 81 82 83 85 88 89 90 91 93 94 97 98 100
output:
260611605
result:
ok single line: '260611605'
Test #19:
score: 0
Accepted
time: 408ms
memory: 9824kb
input:
87 743895456714594177 1 2 3 4 5 7 8 9 10 11 12 13 14 15 16 17 19 21 22 23 24 25 26 27 28 29 31 32 33 34 35 36 38 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 71 72 73 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 92 93 94 96 97 98 99 100
output:
204036438
result:
ok single line: '204036438'
Test #20:
score: 0
Accepted
time: 406ms
memory: 9828kb
input:
100 786116087501917881 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:
653783266
result:
ok single line: '653783266'
Test #21:
score: 0
Accepted
time: 396ms
memory: 9828kb
input:
92 136476262588992444 1 2 3 4 5 6 7 9 10 11 12 13 15 16 17 18 19 20 21 22 23 24 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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 97 98 99 100
output:
877817224
result:
ok single line: '877817224'
Test #22:
score: 0
Accepted
time: 398ms
memory: 9768kb
input:
62 133554181523861023 1 3 5 9 12 18 19 20 21 22 26 27 28 29 30 31 32 33 34 38 39 42 43 44 45 47 48 50 51 53 54 55 56 57 58 59 60 61 64 65 68 70 71 72 73 74 75 76 77 80 81 82 84 85 87 88 89 90 92 93 98 100
output:
669245709
result:
ok single line: '669245709'
Test #23:
score: 0
Accepted
time: 392ms
memory: 9824kb
input:
100 291552455630832684 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:
483538151
result:
ok single line: '483538151'
Test #24:
score: 0
Accepted
time: 396ms
memory: 9824kb
input:
87 205646708866104353 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 20 22 23 25 26 27 28 29 30 31 32 33 34 35 37 40 41 42 43 44 45 46 47 48 49 50 52 53 54 55 56 57 58 59 60 61 62 64 65 66 67 68 69 70 71 72 73 74 76 77 78 79 80 81 82 83 84 85 88 89 90 91 93 95 96 97 98 99 100
output:
698023450
result:
ok single line: '698023450'
Test #25:
score: 0
Accepted
time: 401ms
memory: 9824kb
input:
76 426073209327106620 1 2 3 5 6 7 8 10 11 12 13 14 18 20 22 23 24 28 29 34 35 36 37 38 39 40 41 42 43 44 46 47 49 50 51 52 55 56 57 58 59 60 61 63 64 65 66 67 69 70 72 73 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 94 95 96 97 99 100
output:
825986789
result:
ok single line: '825986789'
Test #26:
score: 0
Accepted
time: 398ms
memory: 9824kb
input:
100 308052049553182165 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:
168456918
result:
ok single line: '168456918'
Test #27:
score: 0
Accepted
time: 403ms
memory: 9672kb
input:
76 736724246509817986 1 2 3 4 5 6 7 8 9 10 13 15 16 17 18 19 20 21 22 23 25 26 27 28 29 31 32 33 35 36 38 41 42 44 47 49 50 51 52 53 55 56 59 60 61 63 64 65 66 68 72 73 74 75 77 78 79 80 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100
output:
688103012
result:
ok single line: '688103012'
Test #28:
score: 0
Accepted
time: 387ms
memory: 9820kb
input:
88 110809014907877976 1 2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 21 22 23 24 25 29 30 31 32 33 34 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 79 81 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 100
output:
578170512
result:
ok single line: '578170512'
Test #29:
score: 0
Accepted
time: 376ms
memory: 9824kb
input:
97 8522433267943398 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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 87 89 90 91 92 93 94 95 96 97 98 99 100
output:
485057969
result:
ok single line: '485057969'
Test #30:
score: 0
Accepted
time: 405ms
memory: 9652kb
input:
52 409128001599083615 2 4 6 8 15 16 17 19 20 21 24 26 27 28 30 31 32 34 35 37 39 41 42 43 44 47 48 49 50 52 54 55 57 65 66 69 70 74 75 78 79 80 81 82 85 86 89 92 96 97 98 100
output:
639313568
result:
ok single line: '639313568'
Test #31:
score: 0
Accepted
time: 402ms
memory: 9824kb
input:
62 434828915876428217 1 2 3 5 6 7 8 9 10 12 13 14 16 17 18 19 20 21 22 23 24 25 27 29 31 32 34 35 38 39 40 41 42 46 48 49 50 51 56 58 62 63 67 69 70 71 72 73 74 75 77 80 84 85 86 88 89 92 93 95 96 100
output:
415808968
result:
ok single line: '415808968'
Test #32:
score: 0
Accepted
time: 393ms
memory: 9728kb
input:
97 103718907374448220 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 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 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 99...
output:
917967647
result:
ok single line: '917967647'
Test #33:
score: 0
Accepted
time: 408ms
memory: 9824kb
input:
87 849402514290637680 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 27 28 30 31 32 33 34 35 36 37 39 41 42 43 44 47 49 50 51 52 54 55 56 57 58 59 60 61 63 64 65 66 67 68 69 70 71 72 74 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100
output:
316071925
result:
ok single line: '316071925'
Test #34:
score: 0
Accepted
time: 401ms
memory: 9820kb
input:
56 678193952395107040 2 4 5 8 9 10 15 16 18 19 20 21 22 23 25 28 29 30 34 39 40 41 43 44 46 48 49 52 53 54 57 59 63 64 66 67 68 70 72 77 78 80 81 82 83 85 86 87 88 91 92 96 97 98 99 100
output:
911648303
result:
ok single line: '911648303'
Test #35:
score: 0
Accepted
time: 399ms
memory: 9820kb
input:
75 620326353486854257 1 2 3 4 6 7 8 10 14 15 16 17 18 21 22 23 24 25 26 27 28 30 31 32 33 34 36 37 38 39 40 42 44 45 46 48 49 50 51 54 55 56 57 59 60 61 62 64 66 68 70 71 73 75 77 78 79 80 81 82 83 85 86 87 88 89 90 91 92 94 95 96 98 99 100
output:
858941573
result:
ok single line: '858941573'
Test #36:
score: 0
Accepted
time: 394ms
memory: 9828kb
input:
100 187863285653547045 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:
768371954
result:
ok single line: '768371954'
Test #37:
score: 0
Accepted
time: 396ms
memory: 9604kb
input:
59 579316497829675532 1 3 4 7 8 9 11 12 13 14 15 19 20 23 25 26 28 34 35 37 38 39 42 43 45 47 48 49 52 54 55 58 60 61 63 66 69 71 72 73 75 76 77 79 81 82 83 85 87 89 90 91 92 93 94 95 97 98 99
output:
881703189
result:
ok single line: '881703189'
Test #38:
score: 0
Accepted
time: 397ms
memory: 9820kb
input:
70 339805959444370808 1 2 3 5 6 7 9 10 11 12 13 14 15 16 19 21 22 24 25 26 27 28 29 30 31 32 33 34 36 37 38 41 43 44 45 47 48 49 50 51 52 53 57 59 60 61 62 63 65 66 67 68 70 71 72 74 77 78 83 84 86 87 88 89 92 93 94 96 98 100
output:
689635230
result:
ok single line: '689635230'
Test #39:
score: 0
Accepted
time: 380ms
memory: 9828kb
input:
94 46846115997742234 1 2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 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 68 69 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 100
output:
980483511
result:
ok single line: '980483511'
Test #40:
score: 0
Accepted
time: 399ms
memory: 9620kb
input:
94 580785356222710892 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 32 33 34 35 36 37 38 39 40 41 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 94 95 96 97 98 99 100
output:
885035452
result:
ok single line: '885035452'
Test #41:
score: 0
Accepted
time: 399ms
memory: 9728kb
input:
60 638713503337574694 2 3 5 6 7 8 9 11 12 13 15 16 18 20 21 22 24 27 28 30 31 32 33 34 35 37 40 42 45 46 47 49 50 52 54 55 56 60 61 62 64 66 68 69 71 73 74 75 76 78 79 82 86 87 89 90 92 93 97 100
output:
888389295
result:
ok single line: '888389295'
Test #42:
score: 0
Accepted
time: 404ms
memory: 9824kb
input:
62 637965414138110463 1 3 6 8 10 11 14 15 16 19 21 22 24 27 29 30 31 32 34 35 37 38 40 41 42 43 44 46 47 48 49 51 53 56 57 58 59 61 63 66 67 68 69 70 71 72 73 75 76 77 79 82 84 88 89 90 92 93 94 96 99 100
output:
367714140
result:
ok single line: '367714140'
Test #43:
score: 0
Accepted
time: 401ms
memory: 9624kb
input:
71 362137851689001828 1 3 4 6 7 8 12 13 15 18 20 21 23 24 25 26 27 28 30 31 33 35 36 37 38 40 41 42 45 46 49 50 51 52 53 55 57 58 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 80 81 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 100
output:
722747910
result:
ok single line: '722747910'
Test #44:
score: 0
Accepted
time: 400ms
memory: 9824kb
input:
59 603961554833400681 4 9 10 11 13 14 15 16 18 19 20 21 23 24 25 27 30 32 34 35 36 37 38 39 43 45 46 47 48 49 52 53 54 55 56 57 58 59 60 66 70 73 74 76 78 80 81 82 84 85 86 87 88 89 91 94 95 97 98
output:
221195466
result:
ok single line: '221195466'
Test #45:
score: 0
Accepted
time: 406ms
memory: 9820kb
input:
94 975101873500150360 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 49 50 51 53 55 56 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 91 92 93 94 95 97 98 99 100
output:
855640691
result:
ok single line: '855640691'
Test #46:
score: 0
Accepted
time: 395ms
memory: 9824kb
input:
92 334861219310765573 1 2 3 4 5 6 7 8 10 11 12 13 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 46 47 48 49 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 80 81 82 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 100
output:
440958478
result:
ok single line: '440958478'
Test #47:
score: 0
Accepted
time: 397ms
memory: 9824kb
input:
65 588469847509789389 3 4 5 6 8 9 12 13 14 16 17 18 19 21 24 25 27 28 29 30 32 33 34 36 37 38 39 41 44 46 47 48 49 51 52 54 55 56 58 60 61 63 64 65 72 73 74 77 78 80 81 82 83 84 85 86 87 89 90 92 95 96 98 99 100
output:
431261071
result:
ok single line: '431261071'
Test #48:
score: 0
Accepted
time: 396ms
memory: 9824kb
input:
67 214692090458119006 1 2 3 4 6 7 8 11 12 13 14 16 17 20 21 22 23 25 29 30 31 34 35 36 37 38 39 40 42 44 46 47 49 50 53 55 57 59 60 61 62 64 65 66 67 69 70 72 73 74 75 76 77 78 81 82 83 86 88 90 91 93 94 95 96 98 99
output:
779219234
result:
ok single line: '779219234'
Test #49:
score: 0
Accepted
time: 395ms
memory: 9820kb
input:
79 296093546321960072 1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 26 27 28 29 30 31 34 36 37 38 39 42 43 44 45 47 50 51 52 53 54 56 58 59 60 61 62 63 64 65 68 69 70 71 72 73 74 75 77 78 80 82 84 85 86 87 88 89 90 91 92 93 94 95 96 99 100
output:
157425744
result:
ok single line: '157425744'
Test #50:
score: 0
Accepted
time: 386ms
memory: 9824kb
input:
95 87592139159036065 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 44 45 46 47 48 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 87 88 89 90 91 92 93 94 95 96 97 98 99 100
output:
243406110
result:
ok single line: '243406110'
Test #51:
score: 0
Accepted
time: 400ms
memory: 9824kb
input:
61 448225767417356909 1 2 3 4 8 9 10 11 12 15 17 18 19 22 23 30 34 37 38 39 40 41 42 43 46 47 48 49 50 52 53 55 56 57 59 60 61 62 64 66 70 72 73 75 77 80 81 83 84 85 86 87 88 89 91 93 94 96 98 99 100
output:
82760371
result:
ok single line: '82760371'
Test #52:
score: 0
Accepted
time: 407ms
memory: 9824kb
input:
81 821329051858966512 1 2 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 20 23 24 25 26 27 29 30 31 32 34 35 36 37 38 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 61 63 65 66 67 68 70 71 72 74 75 77 78 79 81 82 83 84 85 86 88 91 92 93 94 95 96 97 98 100
output:
520970277
result:
ok single line: '520970277'
Test #53:
score: 0
Accepted
time: 410ms
memory: 9824kb
input:
98 940855378958962099 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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98...
output:
657351592
result:
ok single line: '657351592'
Test #54:
score: 0
Accepted
time: 406ms
memory: 9820kb
input:
92 783003897919847855 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 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 68 69 70 72 73 74 76 77 78 79 80 81 82 83 84 86 89 90 91 92 93 94 95 96 97 98 99 100
output:
333686854
result:
ok single line: '333686854'
Test #55:
score: 0
Accepted
time: 400ms
memory: 9824kb
input:
75 628045424887158604 1 2 4 5 6 7 8 9 10 11 13 15 16 17 18 20 21 22 23 25 26 27 30 31 32 34 35 36 37 38 39 41 42 43 44 45 47 51 52 53 54 55 57 58 59 60 61 62 63 67 70 71 72 73 74 75 76 77 78 79 80 82 84 85 86 87 88 89 91 93 94 97 98 99 100
output:
51753714
result:
ok single line: '51753714'
Test #56:
score: 0
Accepted
time: 384ms
memory: 9768kb
input:
80 47181067905253739 3 5 6 7 9 10 11 13 14 16 17 19 20 21 22 23 24 25 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 47 48 49 50 51 52 53 55 56 57 58 59 60 61 62 63 64 65 66 67 70 71 75 76 77 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 95 96 97 99 100
output:
803399973
result:
ok single line: '803399973'
Test #57:
score: 0
Accepted
time: 406ms
memory: 9824kb
input:
52 745904798597793780 2 4 9 12 15 16 17 18 19 22 24 25 26 30 31 32 33 35 37 38 40 41 42 44 45 46 47 49 50 53 54 57 59 60 61 62 63 66 73 74 77 78 88 89 91 92 94 95 96 97 98 99
output:
291045325
result:
ok single line: '291045325'
Test #58:
score: 0
Accepted
time: 395ms
memory: 9824kb
input:
92 170922819812899119 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 55 56 57 58 59 60 61 62 63 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
output:
714112942
result:
ok single line: '714112942'
Test #59:
score: 0
Accepted
time: 408ms
memory: 9824kb
input:
63 837042831344897879 4 5 7 10 12 14 16 18 19 20 21 23 25 27 30 34 35 36 37 39 40 41 44 45 46 48 50 51 52 53 54 55 58 59 60 61 62 63 64 68 70 71 72 73 74 75 77 78 82 83 84 85 86 87 89 91 92 94 95 96 98 99 100
output:
427966692
result:
ok single line: '427966692'
Test #60:
score: 0
Accepted
time: 396ms
memory: 9824kb
input:
98 211617574728952536 1 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 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 9...
output:
480172010
result:
ok single line: '480172010'
Test #61:
score: 0
Accepted
time: 407ms
memory: 9824kb
input:
79 499617513886145546 1 2 3 4 6 7 8 10 12 13 16 17 20 21 22 23 24 26 27 28 29 30 32 34 35 36 37 38 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 61 62 63 64 65 66 67 71 73 74 75 76 77 78 79 80 81 82 84 85 86 88 89 91 92 93 95 96 97 98 99 100
output:
180876880
result:
ok single line: '180876880'
Test #62:
score: 0
Accepted
time: 395ms
memory: 9820kb
input:
62 182887490813788461 1 3 4 5 6 7 10 11 12 13 14 15 16 17 19 21 25 27 29 31 33 34 35 38 39 40 41 42 43 44 46 48 49 50 51 52 54 55 60 61 62 63 65 68 73 74 75 76 79 83 84 85 86 87 88 89 91 93 94 95 97 99
output:
339429188
result:
ok single line: '339429188'
Test #63:
score: 0
Accepted
time: 392ms
memory: 9828kb
input:
73 230406981197665528 1 2 4 6 7 8 9 10 11 12 14 15 16 17 18 19 21 23 24 25 26 27 29 33 35 36 37 38 39 41 43 44 45 46 48 50 51 53 54 55 56 57 58 59 61 63 64 65 66 67 68 70 72 73 76 77 78 79 80 81 82 83 86 87 88 89 90 91 94 95 98 99 100
output:
111028367
result:
ok single line: '111028367'
Test #64:
score: 0
Accepted
time: 383ms
memory: 9828kb
input:
57 32246462204787796 1 3 4 5 6 7 9 13 14 16 17 20 21 22 24 25 26 27 28 31 32 33 34 35 39 40 41 42 43 44 47 49 50 51 53 57 58 62 64 65 67 68 71 72 73 76 83 84 85 90 91 93 95 97 98 99 100
output:
385350356
result:
ok single line: '385350356'
Test #65:
score: 0
Accepted
time: 403ms
memory: 9820kb
input:
54 489006686391198678 1 3 6 8 9 10 11 13 14 16 18 20 23 24 25 28 29 30 31 33 36 37 39 42 45 47 48 50 53 54 57 58 62 63 69 74 75 76 77 78 79 80 83 84 87 88 89 92 94 95 97 98 99 100
output:
689042610
result:
ok single line: '689042610'
Test #66:
score: 0
Accepted
time: 403ms
memory: 9776kb
input:
75 524697439572857835 1 2 3 5 7 8 9 10 11 12 13 14 15 16 18 20 21 22 23 24 25 26 27 28 29 30 31 32 34 37 38 39 40 43 44 45 46 47 48 49 51 52 55 56 58 59 61 62 65 67 68 71 72 73 74 75 76 77 78 79 80 81 83 85 86 87 88 89 90 91 94 95 97 98 99
output:
611227836
result:
ok single line: '611227836'
Test #67:
score: 0
Accepted
time: 391ms
memory: 9820kb
input:
60 117329648646434071 1 2 3 4 6 7 10 11 12 13 14 16 17 19 21 23 24 27 28 31 32 33 34 35 36 37 38 41 45 46 47 48 49 54 56 60 61 63 64 65 67 68 70 74 75 77 79 81 82 83 84 85 86 87 90 92 94 95 96 100
output:
137929680
result:
ok single line: '137929680'
Test #68:
score: 0
Accepted
time: 399ms
memory: 9820kb
input:
89 725546397351130113 1 2 3 4 6 7 8 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 40 41 43 44 45 46 47 48 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 72 73 74 75 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98
output:
10215614
result:
ok single line: '10215614'
Test #69:
score: 0
Accepted
time: 396ms
memory: 9820kb
input:
67 209471414361415380 1 3 4 6 7 8 9 10 11 12 13 14 15 18 20 21 23 24 25 27 28 32 33 34 35 36 38 39 41 42 43 44 45 46 50 52 55 56 57 58 59 61 62 63 64 66 67 68 70 71 72 73 76 77 79 82 83 84 85 86 89 91 92 97 98 99 100
output:
520669568
result:
ok single line: '520669568'
Test #70:
score: 0
Accepted
time: 389ms
memory: 9828kb
input:
56 66148582301705781 2 5 6 7 8 9 10 11 13 15 16 20 21 22 23 24 25 27 28 31 32 35 38 40 42 44 46 49 53 58 61 62 63 64 66 71 72 75 77 78 80 81 83 84 85 86 88 89 90 91 92 94 95 96 97 98
output:
409910741
result:
ok single line: '409910741'
Test #71:
score: 0
Accepted
time: 389ms
memory: 9824kb
input:
96 99855876179495962 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 59 60 61 62 63 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
output:
215694703
result:
ok single line: '215694703'
Test #72:
score: 0
Accepted
time: 401ms
memory: 9820kb
input:
76 484779545037828905 2 3 4 5 8 11 12 13 16 17 18 19 20 21 22 23 24 26 27 28 29 33 35 36 37 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 55 57 58 61 63 64 65 66 70 72 73 74 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
output:
929773092
result:
ok single line: '929773092'
Test #73:
score: 0
Accepted
time: 402ms
memory: 9824kb
input:
56 603046377125519399 1 2 3 4 5 7 9 10 14 15 16 18 21 23 24 25 27 29 30 31 33 35 37 40 42 44 45 46 48 51 53 54 55 58 62 64 65 66 68 69 70 73 76 77 80 81 82 85 86 87 88 90 91 92 94 96
output:
956659902
result:
ok single line: '956659902'
Test #74:
score: 0
Accepted
time: 413ms
memory: 9824kb
input:
76 932931543457799643 1 2 3 4 5 6 7 8 9 10 13 14 15 16 18 19 20 21 22 23 25 26 27 30 31 32 33 34 35 36 39 42 43 44 45 46 47 48 49 50 54 55 56 57 58 60 61 62 63 64 66 67 68 70 71 72 73 75 76 77 80 82 83 84 86 88 90 91 92 93 94 95 96 98 99 100
output:
618132288
result:
ok single line: '618132288'
Test #75:
score: 0
Accepted
time: 395ms
memory: 9824kb
input:
73 197157426964354895 1 3 5 6 7 8 9 10 11 12 13 14 15 16 17 22 24 25 26 27 29 30 31 32 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 52 53 55 56 58 61 62 66 67 69 70 71 73 74 75 76 78 81 82 83 84 85 86 87 88 90 92 93 94 95 97 98 100
output:
685602275
result:
ok single line: '685602275'
Test #76:
score: 0
Accepted
time: 395ms
memory: 9652kb
input:
67 211312138784535666 1 2 3 4 6 7 8 9 10 11 13 14 16 17 19 21 22 23 24 25 27 29 31 33 34 38 40 42 43 44 45 47 48 49 50 51 52 54 56 57 58 59 60 62 63 64 65 69 71 74 76 78 79 80 83 85 86 87 88 89 90 91 92 93 94 95 96
output:
798683412
result:
ok single line: '798683412'
Test #77:
score: 0
Accepted
time: 404ms
memory: 9824kb
input:
71 657255281577442931 2 3 4 6 10 11 12 14 15 16 17 19 20 21 23 24 25 26 27 29 30 31 32 33 35 36 37 39 40 41 42 43 45 46 47 48 49 52 53 54 56 57 58 59 61 62 63 64 65 66 68 71 73 74 76 77 78 79 80 81 83 85 86 89 91 92 94 95 97 98 99
output:
287998169
result:
ok single line: '287998169'
Test #78:
score: 0
Accepted
time: 407ms
memory: 9824kb
input:
69 630057743645277884 3 4 5 7 8 10 12 13 15 16 17 19 20 21 22 23 25 26 27 29 31 32 33 34 35 37 38 39 41 42 44 45 47 48 50 51 52 53 54 55 56 57 58 59 60 62 63 65 67 68 69 70 72 73 77 78 79 80 81 82 84 85 86 87 90 91 92 94 99
output:
297478108
result:
ok single line: '297478108'
Test #79:
score: 0
Accepted
time: 407ms
memory: 9828kb
input:
72 571933055122935395 1 2 3 4 5 6 7 8 9 13 15 19 21 22 24 25 26 28 29 32 33 34 35 36 37 39 40 41 42 44 45 46 47 48 53 55 56 57 58 60 61 62 63 65 66 67 68 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 88 89 92 93 95 96 97 99 100
output:
186215451
result:
ok single line: '186215451'
Test #80:
score: 0
Accepted
time: 403ms
memory: 9824kb
input:
57 698675264977301641 2 8 9 10 12 13 14 16 17 18 19 20 21 23 26 27 28 29 31 32 33 34 35 37 39 40 43 45 47 49 50 52 54 56 59 61 62 63 64 65 67 68 78 80 81 82 83 85 89 90 92 93 95 96 97 98 100
output:
615687445
result:
ok single line: '615687445'
Test #81:
score: 0
Accepted
time: 407ms
memory: 9824kb
input:
91 550086651862219582 1 2 3 4 5 6 7 8 9 10 12 13 14 15 18 19 20 21 22 24 25 26 27 29 30 31 32 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 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 95 96 97 98 99
output:
73747537
result:
ok single line: '73747537'
Test #82:
score: 0
Accepted
time: 406ms
memory: 9824kb
input:
76 559313453688304421 1 3 4 8 9 10 11 13 15 16 17 18 20 21 22 23 25 26 27 28 30 31 32 33 34 35 36 37 38 39 40 42 45 46 47 50 51 52 53 54 55 56 57 58 59 60 61 63 64 65 67 68 69 70 71 72 74 76 77 79 80 81 82 83 84 86 87 89 90 91 93 94 95 97 98 99
output:
6563544
result:
ok single line: '6563544'
Test #83:
score: 0
Accepted
time: 400ms
memory: 9824kb
input:
52 590729355870168811 1 9 11 12 13 14 15 18 20 21 22 23 24 28 30 32 35 37 38 39 40 44 45 47 48 52 53 57 58 59 62 63 64 66 68 70 73 75 76 77 78 79 84 88 89 90 91 92 93 95 99 100
output:
79593221
result:
ok single line: '79593221'
Test #84:
score: 0
Accepted
time: 352ms
memory: 9824kb
input:
71 1078787670479297 1 2 4 6 7 8 10 11 14 15 16 17 19 20 21 22 23 24 25 26 27 28 29 31 32 35 36 39 41 42 43 44 46 47 50 51 53 56 58 60 61 62 64 65 66 67 69 70 71 72 73 74 76 77 78 79 80 81 82 85 88 89 90 91 94 95 96 97 98 99 100
output:
493465277
result:
ok single line: '493465277'
Test #85:
score: 0
Accepted
time: 396ms
memory: 9824kb
input:
60 330172086272696495 2 3 4 6 7 9 10 12 13 19 20 22 23 26 27 28 29 31 35 36 38 41 42 43 44 45 48 51 52 53 55 57 58 59 61 64 66 68 69 70 73 74 78 79 81 83 84 85 86 88 89 91 92 93 94 96 97 98 99 100
output:
705494197
result:
ok single line: '705494197'
Test #86:
score: 0
Accepted
time: 393ms
memory: 9828kb
input:
53 224894710983180305 2 6 8 10 12 14 15 16 17 18 20 21 24 26 34 35 37 39 40 41 43 44 45 46 48 49 52 53 54 56 57 59 62 63 64 67 68 69 73 74 75 77 80 83 85 86 87 90 92 93 94 97 98
output:
892085369
result:
ok single line: '892085369'
Test #87:
score: 0
Accepted
time: 408ms
memory: 9820kb
input:
73 839359062850662962 1 3 4 6 9 11 12 13 14 15 16 18 22 24 26 27 28 29 31 32 33 34 35 37 39 41 42 44 46 47 48 49 50 51 52 53 54 56 57 58 60 62 63 64 65 66 67 68 71 72 73 74 76 77 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 97 98 99 100
output:
755719540
result:
ok single line: '755719540'
Test #88:
score: 0
Accepted
time: 405ms
memory: 9828kb
input:
90 500645019601164317 3 4 5 6 7 8 9 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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 65 66 67 68 69 70 71 72 73 74 75 77 78 79 80 81 83 84 85 86 89 90 91 93 94 95 96 97 98 99 100
output:
59577500
result:
ok single line: '59577500'
Test #89:
score: 0
Accepted
time: 398ms
memory: 9768kb
input:
67 476908076244031504 3 5 6 7 8 9 10 11 12 13 14 15 18 22 23 24 25 27 28 30 32 33 34 35 36 39 41 45 47 48 49 50 51 52 54 55 57 59 61 62 64 67 69 71 73 74 75 76 77 78 80 81 82 83 84 85 87 88 90 91 92 93 96 97 98 99 100
output:
716555760
result:
ok single line: '716555760'
Test #90:
score: 0
Accepted
time: 405ms
memory: 9796kb
input:
93 562016544768765114 1 2 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 20 21 22 23 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 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 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 95 96 98 99 100
output:
791523168
result:
ok single line: '791523168'
Test #91:
score: 0
Accepted
time: 405ms
memory: 9824kb
input:
69 816566902881997196 1 2 4 5 6 8 10 11 12 13 14 15 17 18 19 20 22 24 25 26 28 30 31 32 33 34 36 37 39 40 43 44 45 47 48 51 52 53 54 55 57 58 59 60 61 62 63 64 65 68 69 71 72 73 74 75 77 78 79 80 85 86 87 88 92 93 96 99 100
output:
316161442
result:
ok single line: '316161442'
Test #92:
score: 0
Accepted
time: 404ms
memory: 9824kb
input:
69 781242162219074378 1 2 3 4 5 6 7 8 9 10 11 12 15 16 17 18 19 20 21 23 26 27 28 29 31 32 33 35 36 39 40 43 44 46 47 50 51 53 55 56 58 62 65 68 71 73 74 75 76 78 79 80 81 82 83 84 85 87 88 89 90 91 92 93 95 96 98 99 100
output:
213160734
result:
ok single line: '213160734'
Test #93:
score: 0
Accepted
time: 394ms
memory: 9820kb
input:
97 190033324320095889 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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 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...
output:
347748784
result:
ok single line: '347748784'
Test #94:
score: 0
Accepted
time: 396ms
memory: 9820kb
input:
53 186790849555518449 2 3 4 5 6 8 10 15 16 17 24 25 26 27 28 29 32 34 35 36 38 46 51 52 53 54 55 56 62 65 68 69 70 72 73 74 75 77 78 79 80 81 82 83 84 85 86 89 90 92 96 99 100
output:
293224110
result:
ok single line: '293224110'
Test #95:
score: 0
Accepted
time: 407ms
memory: 9820kb
input:
79 867498345146079734 3 4 5 6 7 8 9 10 11 12 13 14 17 20 22 23 25 26 28 29 30 31 32 34 35 36 37 38 39 40 41 43 44 45 46 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 68 69 70 71 73 74 75 77 78 79 80 82 84 85 86 87 88 89 90 91 92 93 96 97 98 99 100
output:
539179052
result:
ok single line: '539179052'
Test #96:
score: 0
Accepted
time: 408ms
memory: 9776kb
input:
87 758810492807317139 1 2 4 5 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 35 36 37 38 39 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 68 69 70 72 73 74 75 76 77 78 79 81 82 83 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100
output:
368547898
result:
ok single line: '368547898'
Test #97:
score: 0
Accepted
time: 405ms
memory: 9824kb
input:
60 925071443506854281 2 4 5 6 10 13 15 16 17 18 21 23 24 25 27 28 29 31 32 34 37 38 41 43 44 45 46 47 49 52 53 55 56 57 61 62 64 65 66 69 71 72 74 75 76 77 78 79 80 81 83 84 86 88 90 93 97 98 99 100
output:
396839084
result:
ok single line: '396839084'
Test #98:
score: 0
Accepted
time: 410ms
memory: 9824kb
input:
80 972236086136380122 1 2 3 5 6 7 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 26 27 31 32 33 34 35 37 38 39 40 42 43 44 46 47 48 49 50 51 53 54 56 57 58 60 61 62 63 64 65 67 68 69 70 71 73 74 75 76 78 80 81 82 84 85 86 88 90 91 92 93 94 96 97 98 99 100
output:
562797031
result:
ok single line: '562797031'
Test #99:
score: 0
Accepted
time: 406ms
memory: 9824kb
input:
94 762359792881873455 1 2 3 4 6 7 8 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 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
output:
179241679
result:
ok single line: '179241679'
Test #100:
score: 0
Accepted
time: 406ms
memory: 9824kb
input:
86 661984838804958330 1 2 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 35 37 38 39 41 42 43 44 45 46 47 48 49 50 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 70 72 73 74 75 77 79 80 82 83 84 85 86 88 89 91 92 93 95 96 98 99 100
output:
196932163
result:
ok single line: '196932163'