QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#425084 | #8726. Magic Show | maomao90# | 100 ✓ | 1ms | 1896kb | C++20 | 3.5kb | 2024-05-29 21:58:42 | 2024-05-29 21:58:43 |
Judging History
Alice
#include "Alice.h"
#include <bits/stdc++.h>
using namespace std;
#define REP(i, j, k) for (int i = j; i < (k); i++)
#define RREP(i, j, k) for (int i = j; i >= (k); i--)
template <typename T>
bool mnto(T &a, const T &b) {return b < a ? a = b, 1 : 0;}
template <typename T>
bool mxto(T &a, const T &b) {return b > a ? a = b, 1 : 0;}
typedef long long ll;
#define FI first
#define SE second
typedef pair<int, int> ii;
typedef pair<ll, ll> pll;
#define pb push_back
#define SZ(x) ((int) x.size())
#define ALL(x) x.begin(), x.end()
typedef vector<int> vi;
typedef vector<ii> vii;
typedef vector<ll> vll;
typedef tuple<int, int, int> iii;
typedef tuple<ll, ll, ll> lll;
typedef vector<iii> viii;
typedef vector<lll> vlll;
#ifndef DEBUG
#define cerr if (0) cerr
#endif
namespace {
const int BLK = 83;
const int MAXL = 60;
//const int BLK = 11;
//const int MAXL = 3;
const int n = BLK * MAXL;
mt19937 rnd(38205);
int id[n + 5];
}
vii Alice() {
ll x = setN(n);
iota(id, id + n, 1);
shuffle(id, id + n, rnd);
vii eg;
REP (k, 0, MAXL) {
if (x >> k & 1) {
if (k) {
eg.pb({id[k * BLK], id[k * BLK - 1]});
}
REP (i, 1, BLK) {
eg.pb({id[k * BLK + i - 1], id[k * BLK + i]});
}
} else {
if (k) {
eg.pb({id[k * BLK + 1], id[k * BLK - 1]});
}
RREP (b, 1, 0) {
for (int i = b; i + 2 < BLK; i += 2) {
eg.pb({id[k * BLK + i], id[k * BLK + i + 2]});
}
if (b) {
eg.pb({id[(k + 1) * BLK - 2], id[k * BLK]});
}
}
}
}
shuffle(ALL(eg), rnd);
for (auto &[u, v] : eg) {
if (rnd() & 1) {
swap(u, v);
}
}
return eg;
}
Bob
#include <vector>
#include <bits/stdc++.h>
using namespace std;
#define REP(i, j, k) for (int i = j; i < (k); i++)
#define RREP(i, j, k) for (int i = j; i >= (k); i--)
template <typename T>
bool mnto(T &a, const T &b) {return b < a ? a = b, 1 : 0;}
template <typename T>
bool mxto(T &a, const T &b) {return b > a ? a = b, 1 : 0;}
typedef long long ll;
#define FI first
#define SE second
typedef pair<int, int> ii;
typedef pair<ll, ll> pll;
#define pb push_back
#define SZ(x) ((int) x.size())
#define ALL(x) x.begin(), x.end()
typedef vector<int> vi;
typedef vector<ii> vii;
typedef vector<ll> vll;
typedef tuple<int, int, int> iii;
typedef tuple<ll, ll, ll> lll;
typedef vector<iii> viii;
typedef vector<lll> vlll;
#ifndef DEBUG
#define cerr if (0) cerr
#endif
namespace {
const int BLK = 83;
const int MAXL = 60;
//const int BLK = 11;
//const int MAXL = 3;
const int n = BLK * MAXL;
mt19937 rnd(38205);
int id[n + 5];
int in[n + 5];
int deg[n + 5];
}
ll Bob(vii eg){
iota(id, id + n, 1);
shuffle(id, id + n, rnd);
REP (i, 1, n + 1) {
in[i] = 0;
deg[i] = 0;
}
ll ans = 0;
REP (k, 0, MAXL) {
REP (i, k * BLK, (k + 1) * BLK) {
in[id[i]] = i + 1;
}
int cnt = 0;
bool on;
for (auto [u, v] : eg) {
if (in[u] && in[v]) {
if (abs(in[u] - in[v]) == 1) {
on = 1;
} else {
on = 0;
}
cnt++;
}
}
assert(cnt);
if (on) {
ans += 1ll << k;
}
REP (i, k * BLK, (k + 1) * BLK) {
in[id[i]] = 0;
}
}
return ans;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 1ms = 0ms + 1ms
memory: 1892kb,1888kb
input:
1 4005
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4886 3989 1821 4160 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4886 3989 1821 4160 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
output:
2 4980 4751 1 4465 1 4759 2 3103 2 3942 3 715 3 1334 4 11 4 4767 5 1290 5 4811 6 2545 6 3353 7 273 7 2665 8 1782 8 3329 9 2623 9 3898 10 1572 10 2874 11 2429 12 100 12 2767 13 431 13 3620 14 4142 15 985 15 1664 16 357 16 2793 17 826 17 4769 18 167 18 1574 19 1015 19 4181 20 4223 20 4819 21 1259 21 3...
input:
2 4980 4751 1 4465 1 4759 2 3103 2 3942 3 715 3 1334 4 11 4 4767 5 1290 5 4811 6 2545 6 3353 7 273 7 2665 8 1782 8 3329 9 2623 9 3898 10 1572 10 2874 11 2429 12 100 12 2767 13 431 13 3620 14 4142 15 985 15 1664 16 357 16 2793 17 826 17 4769 18 167 18 1574 19 1015 19 4181 20 4223 20 4819 21 1259 21 3...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 4005
Test #2:
score: 5
Accepted
time: 1ms = 0ms + 1ms
memory: 1888kb,1880kb
input:
1 459
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4959 4803 1821 4160 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4959 4803 1821 4160 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
output:
2 4980 4751 1 4465 1 4759 2 3103 2 3942 3 3172 3 3173 4 11 4 4767 5 1290 5 4811 6 2545 6 3353 7 273 7 2665 8 1782 8 3329 9 2623 9 3898 10 1572 10 2874 11 2429 12 100 12 2767 13 431 13 3620 14 4142 15 888 15 1578 16 357 16 2793 17 826 17 4769 18 167 18 1574 19 4328 20 4223 20 4819 21 1259 21 3218 22 ...
input:
2 4980 4751 1 4465 1 4759 2 3103 2 3942 3 3172 3 3173 4 11 4 4767 5 1290 5 4811 6 2545 6 3353 7 273 7 2665 8 1782 8 3329 9 2623 9 3898 10 1572 10 2874 11 2429 12 100 12 2767 13 431 13 3620 14 4142 15 888 15 1578 16 357 16 2793 17 826 17 4769 18 167 18 1574 19 4328 20 4223 20 4819 21 1259 21 3218 22 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 459
Test #3:
score: 5
Accepted
time: 1ms = 0ms + 1ms
memory: 1892kb,1888kb
input:
1 2495
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4886 3989 1821 4160 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4886 3989 1821 4160 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
output:
2 4980 4751 1 4465 1 4759 2 3103 2 3942 3 715 3 1334 4 11 4 4767 5 1290 5 4811 6 2545 6 3353 7 273 7 2665 8 1782 8 3329 9 2623 9 3898 10 1572 10 2874 11 2429 12 100 12 2767 13 431 13 3620 14 4142 15 888 15 1578 16 357 16 2793 17 826 17 4769 18 167 18 1574 19 1015 19 4181 20 4223 20 4819 21 1259 21 3...
input:
2 4980 4751 1 4465 1 4759 2 3103 2 3942 3 715 3 1334 4 11 4 4767 5 1290 5 4811 6 2545 6 3353 7 273 7 2665 8 1782 8 3329 9 2623 9 3898 10 1572 10 2874 11 2429 12 100 12 2767 13 431 13 3620 14 4142 15 888 15 1578 16 357 16 2793 17 826 17 4769 18 167 18 1574 19 1015 19 4181 20 4223 20 4819 21 1259 21 3...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 2495
Test #4:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
3 1560
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4886 3989 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4886 3989 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
output:
4 4980 2490 1 4465 1 4759 1477 2523 1477 3125 1478 3960 1479 3366 1479 3775 1480 1761 1480 3825 1481 3605 1481 3687 1482 1886 1482 4289 1483 2513 1483 3616 1484 4331 1486 1889 1486 2231 1487 4307 1488 1549 1490 3023 1490 3665 1491 3207 1491 4489 1492 1834 1493 2988 1493 3021 1494 4119 1494 4787 1495...
input:
4 4980 2490 1 4465 1 4759 1477 2523 1477 3125 1478 3960 1479 3366 1479 3775 1480 1761 1480 3825 1481 3605 1481 3687 1482 1886 1482 4289 1483 2513 1483 3616 1484 4331 1486 1889 1486 2231 1487 4307 1488 1549 1490 3023 1490 3665 1491 3207 1491 4489 1492 1834 1493 2988 1493 3021 1494 4119 1494 4787 1495...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 1560
Test #5:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1852kb
input:
3 3594
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4886 3989 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4886 3989 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
output:
4 4980 2490 1 4465 1 4759 1478 3960 1479 3366 1479 3775 1480 1761 1480 3825 1481 3605 1481 3687 1482 1886 1482 4289 1483 2513 1483 3616 1484 1844 1484 2253 1486 1889 1486 2231 1487 4307 1488 1549 1490 3023 1490 3665 1491 3207 1491 4489 1492 1834 1493 2988 1493 3021 1494 4119 1494 4787 1495 3698 1496...
input:
4 4980 2490 1 4465 1 4759 1478 3960 1479 3366 1479 3775 1480 1761 1480 3825 1481 3605 1481 3687 1482 1886 1482 4289 1483 2513 1483 3616 1484 1844 1484 2253 1486 1889 1486 2231 1487 4307 1488 1549 1490 3023 1490 3665 1491 3207 1491 4489 1492 1834 1493 2988 1493 3021 1494 4119 1494 4787 1495 3698 1496...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 3594
Test #6:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
3 1750
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4959 4803 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4959 4803 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
output:
4 4980 2490 1 4465 1 4759 1481 4856 1482 1886 1482 4289 1483 2513 1483 3616 1484 1844 1484 2253 1486 3367 1487 4307 1488 1549 1490 3023 1490 3665 1491 3207 1491 4489 1492 1834 1493 2988 1493 3021 1494 4119 1494 4787 1495 3698 1496 4751 1498 2281 1498 3032 1499 2957 1500 2233 1500 2258 1502 3569 1503...
input:
4 4980 2490 1 4465 1 4759 1481 4856 1482 1886 1482 4289 1483 2513 1483 3616 1484 1844 1484 2253 1486 3367 1487 4307 1488 1549 1490 3023 1490 3665 1491 3207 1491 4489 1492 1834 1493 2988 1493 3021 1494 4119 1494 4787 1495 3698 1496 4751 1498 2281 1498 3032 1499 2957 1500 2233 1500 2258 1502 3569 1503...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 1750
Test #7:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1888kb,1848kb
input:
5 4878
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4886 3989 1821 4160 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4886 3989 1821 4160 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
output:
6 4980 2490 1 4465 2 3103 3 715 4 11 5 4811 6 2545 7 273 8 1782 9 3898 10 2874 12 2767 13 3620 14 1885 15 1664 16 357 17 826 18 1574 19 4181 20 4819 21 1259 22 922 23 1442 24 3863 25 3768 26 3336 27 4112 28 1147 29 4502 30 2567 31 4680 32 515 33 370 34 537 35 441 36 564 37 4199 38 4939 39 4751 40 44...
input:
6 4980 2490 1 4465 2 3103 3 715 4 11 5 4811 6 2545 7 273 8 1782 9 3898 10 2874 12 2767 13 3620 14 1885 15 1664 16 357 17 826 18 1574 19 4181 20 4819 21 1259 22 922 23 1442 24 3863 25 3768 26 3336 27 4112 28 1147 29 4502 30 2567 31 4680 32 515 33 370 34 537 35 441 36 564 37 4199 38 4939 39 4751 40 44...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 4878
Test #8:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1844kb
input:
5 1223
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4959 4803 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4959 4803 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
output:
6 4980 2490 1 4465 2 3103 3 715 4 11 5 4811 6 2545 7 273 8 1782 9 3898 10 2874 12 2767 13 3620 14 1885 15 888 16 357 17 826 18 1574 19 4328 20 4819 21 1259 22 922 23 1442 24 3863 25 3768 26 3336 27 4112 28 1147 29 4502 30 2567 31 4680 32 515 33 370 34 537 35 441 36 564 37 4199 38 4939 39 4751 40 444...
input:
6 4980 2490 1 4465 2 3103 3 715 4 11 5 4811 6 2545 7 273 8 1782 9 3898 10 2874 12 2767 13 3620 14 1885 15 888 16 357 17 826 18 1574 19 4328 20 4819 21 1259 22 922 23 1442 24 3863 25 3768 26 3336 27 4112 28 1147 29 4502 30 2567 31 4680 32 515 33 370 34 537 35 441 36 564 37 4199 38 4939 39 4751 40 444...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 1223
Test #9:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1888kb,1848kb
input:
5 648
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4886 3989 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4886 3989 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
output:
6 4980 2490 1 4465 2 3103 3 3172 4 11 5 4811 6 2545 7 273 8 1782 9 3898 10 2874 12 2767 13 3620 14 1885 15 1664 16 357 17 826 18 1574 19 4181 20 4819 21 1259 22 922 23 1442 24 3863 25 3768 26 3336 27 4112 28 1147 29 4502 30 2567 31 4680 32 515 33 370 34 537 35 441 36 564 37 4199 38 4939 39 4751 40 4...
input:
6 4980 2490 1 4465 2 3103 3 3172 4 11 5 4811 6 2545 7 273 8 1782 9 3898 10 2874 12 2767 13 3620 14 1885 15 1664 16 357 17 826 18 1574 19 4181 20 4819 21 1259 22 922 23 1442 24 3863 25 3768 26 3336 27 4112 28 1147 29 4502 30 2567 31 4680 32 515 33 370 34 537 35 441 36 564 37 4199 38 4939 39 4751 40 4...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 648
Test #10:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
7 4475
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4959 4803 1821 4160 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4959 4803 1821 4160 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
output:
8 4980 2490 1 4465 1 4759 2 3103 2 3942 4 4767 5 1290 5 4811 6 2545 7 2665 9 2623 9 3898 10 2874 12 100 12 2767 13 431 15 1578 16 357 16 2793 17 826 17 4769 18 1574 19 4328 20 4223 20 4819 21 3218 22 922 22 2332 23 1442 24 2076 25 115 26 3014 27 4112 28 1147 30 2464 32 515 33 370 34 537 35 441 37 21...
input:
8 4980 2490 1 4465 1 4759 2 3103 2 3942 4 4767 5 1290 5 4811 6 2545 7 2665 9 2623 9 3898 10 2874 12 100 12 2767 13 431 15 1578 16 357 16 2793 17 826 17 4769 18 1574 19 4328 20 4223 20 4819 21 3218 22 922 22 2332 23 1442 24 2076 25 115 26 3014 27 4112 28 1147 30 2464 32 515 33 370 34 537 35 441 37 21...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 4475
Test #11:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1888kb,1844kb
input:
7 4240
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4886 3989 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4886 3989 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
output:
8 4980 2490 1 4465 1 4759 2 3103 2 3942 4 4767 5 1290 5 4811 6 2545 7 2665 9 2623 9 3898 10 2874 12 100 12 2767 13 431 15 1578 16 357 16 2793 17 826 17 4769 18 1574 19 1015 19 4181 20 4223 20 4819 21 3218 22 922 22 2332 23 1442 24 2076 25 115 26 3014 27 4112 28 1147 30 2464 32 515 33 370 34 537 35 4...
input:
8 4980 2490 1 4465 1 4759 2 3103 2 3942 4 4767 5 1290 5 4811 6 2545 7 2665 9 2623 9 3898 10 2874 12 100 12 2767 13 431 15 1578 16 357 16 2793 17 826 17 4769 18 1574 19 1015 19 4181 20 4223 20 4819 21 3218 22 922 22 2332 23 1442 24 2076 25 115 26 3014 27 4112 28 1147 30 2464 32 515 33 370 34 537 35 4...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 4240
Test #12:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1852kb
input:
7 1291
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4886 3989 1821 4160 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4886 3989 1821 4160 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
output:
8 4980 2490 1 4465 1 4759 2 3103 2 3942 4 4767 5 1290 5 4811 6 2545 7 2665 9 2623 9 3898 10 2874 12 100 12 2767 13 431 15 1578 16 357 16 2793 17 826 17 4769 18 1574 19 1015 19 4181 20 4223 20 4819 21 3218 22 922 22 2332 23 1442 24 2076 25 115 26 3014 27 4112 28 1147 30 2464 32 515 33 370 34 537 35 4...
input:
8 4980 2490 1 4465 1 4759 2 3103 2 3942 4 4767 5 1290 5 4811 6 2545 7 2665 9 2623 9 3898 10 2874 12 100 12 2767 13 431 15 1578 16 357 16 2793 17 826 17 4769 18 1574 19 1015 19 4181 20 4223 20 4819 21 3218 22 922 22 2332 23 1442 24 2076 25 115 26 3014 27 4112 28 1147 30 2464 32 515 33 370 34 537 35 4...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 1291
Subtask #2:
score: 30
Accepted
Test #13:
score: 30
Accepted
time: 1ms = 0ms + 1ms
memory: 1888kb,1888kb
input:
1 17476204
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4959 4803 4227 1826 3375 2392 4075 3720 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 3275 2307 4261 285 4957 907 2614 4454 3830 4565 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4959 4803 4227 1826 3375 2392 4075 3720 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 3275 2307 4261 285 4957 907 2614 4454 3830 4565 3195 713 3...
output:
2 4980 4751 1 2308 1 4298 2 3103 2 3942 3 715 3 1334 4 11 4 4767 5 1290 5 4811 6 2545 6 3353 7 273 7 2665 8 1782 8 3329 9 2623 9 3898 10 1572 10 2874 11 2429 12 100 12 2767 13 431 13 3620 14 4142 15 985 15 1664 16 357 16 2793 17 826 17 4769 18 167 18 1574 19 4328 20 4223 20 4819 21 1259 21 3218 22 4...
input:
2 4980 4751 1 2308 1 4298 2 3103 2 3942 3 715 3 1334 4 11 4 4767 5 1290 5 4811 6 2545 6 3353 7 273 7 2665 8 1782 8 3329 9 2623 9 3898 10 1572 10 2874 11 2429 12 100 12 2767 13 431 13 3620 14 4142 15 985 15 1664 16 357 16 2793 17 826 17 4769 18 167 18 1574 19 4328 20 4223 20 4819 21 1259 21 3218 22 4...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 17476204
Test #14:
score: 30
Accepted
time: 1ms = 0ms + 1ms
memory: 1896kb,1884kb
input:
1 11926600
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4959 4803 4227 1826 2801 3193 4075 3720 1607 4437 1187 69 2105 2988 3946 1876 3121 2003 4755 731 4515 583 4261 285 4957 907 2614 4454 2674 4917 3195 713 34...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4959 4803 4227 1826 2801 3193 4075 3720 1607 4437 1187 69 2105 2988 3946 1876 3121 2003 4755 731 4515 583 4261 285 4957 907 2614 4454 2674 4917 3195 713 34...
output:
2 4980 4751 1 4465 1 4759 2 3103 2 3942 3 3172 3 3173 4 11 4 4767 5 1290 5 4811 6 2545 6 3353 7 273 7 2665 8 1782 8 3329 9 2623 9 3898 10 1572 10 2874 11 2429 12 100 12 2767 13 431 13 3620 14 4142 15 888 15 1578 16 357 16 2793 17 2322 17 3929 18 167 18 1574 19 4328 20 4223 20 4819 21 1259 21 3218 22...
input:
2 4980 4751 1 4465 1 4759 2 3103 2 3942 3 3172 3 3173 4 11 4 4767 5 1290 5 4811 6 2545 6 3353 7 273 7 2665 8 1782 8 3329 9 2623 9 3898 10 1572 10 2874 11 2429 12 100 12 2767 13 431 13 3620 14 4142 15 888 15 1578 16 357 16 2793 17 2322 17 3929 18 167 18 1574 19 4328 20 4223 20 4819 21 1259 21 3218 22...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 11926600
Test #15:
score: 30
Accepted
time: 1ms = 0ms + 1ms
memory: 1892kb,1884kb
input:
1 16602378
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4886 3989 1821 4160 2801 3193 4426 4955 1607 4437 1187 69 2105 2988 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 2674 4917 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4886 3989 1821 4160 2801 3193 4426 4955 1607 4437 1187 69 2105 2988 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 2674 4917 3195 713 3...
output:
2 4980 4751 1 4465 1 4759 2 3103 2 3942 3 3172 3 3173 4 11 4 4767 5 1290 5 4811 6 2545 6 3353 7 273 7 2665 8 1782 8 3329 9 2623 9 3898 10 1572 10 2874 11 2429 12 100 12 2767 13 431 13 3620 14 4142 15 888 15 1578 16 357 16 2793 17 2322 17 3929 18 167 18 1574 19 1015 19 4181 20 4223 20 4819 21 1259 21...
input:
2 4980 4751 1 4465 1 4759 2 3103 2 3942 3 3172 3 3173 4 11 4 4767 5 1290 5 4811 6 2545 6 3353 7 273 7 2665 8 1782 8 3329 9 2623 9 3898 10 1572 10 2874 11 2429 12 100 12 2767 13 431 13 3620 14 4142 15 888 15 1578 16 357 16 2793 17 2322 17 3929 18 167 18 1574 19 1015 19 4181 20 4223 20 4819 21 1259 21...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 16602378
Test #16:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1888kb,1844kb
input:
3 13129243
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4886 3989 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4886 3989 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
output:
4 4980 2490 1 4465 1 4759 1477 2523 1477 3125 1478 3960 1479 3366 1479 3775 1480 1761 1480 3825 1481 3605 1481 3687 1482 1886 1482 4289 1483 2513 1483 3616 1484 1844 1484 2253 1486 1889 1486 2231 1487 4307 1488 1549 1490 3023 1490 3665 1491 3207 1491 4489 1492 1834 1493 2988 1493 3021 1494 4119 1494...
input:
4 4980 2490 1 4465 1 4759 1477 2523 1477 3125 1478 3960 1479 3366 1479 3775 1480 1761 1480 3825 1481 3605 1481 3687 1482 1886 1482 4289 1483 2513 1483 3616 1484 1844 1484 2253 1486 1889 1486 2231 1487 4307 1488 1549 1490 3023 1490 3665 1491 3207 1491 4489 1492 1834 1493 2988 1493 3021 1494 4119 1494...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 13129243
Test #17:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
3 7892141
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4886 3989 4227 1826 2801 3193 4426 4955 1607 4437 1187 69 2105 2988 3946 1876 3121 2003 4755 731 4515 583 4261 285 4957 907 2614 4454 3830 4565 3195 713 34...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4886 3989 4227 1826 2801 3193 4426 4955 1607 4437 1187 69 2105 2988 3946 1876 3121 2003 4755 731 4515 583 4261 285 4957 907 2614 4454 3830 4565 3195 713 34...
output:
4 4980 2490 1 4465 1 4759 1478 3960 1479 3366 1479 3775 1480 1761 1480 3825 1481 3605 1481 3687 1482 1886 1482 4289 1483 2513 1483 3616 1484 4331 1486 1889 1486 2231 1488 3489 1488 3650 1490 3023 1490 3665 1491 3539 1492 1834 1493 2105 1494 1805 1495 3698 1497 4207 1498 2281 1498 3032 1499 2957 1500...
input:
4 4980 2490 1 4465 1 4759 1478 3960 1479 3366 1479 3775 1480 1761 1480 3825 1481 3605 1481 3687 1482 1886 1482 4289 1483 2513 1483 3616 1484 4331 1486 1889 1486 2231 1488 3489 1488 3650 1490 3023 1490 3665 1491 3539 1492 1834 1493 2105 1494 1805 1495 3698 1497 4207 1498 2281 1498 3032 1499 2957 1500...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 7892141
Test #18:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
3 21314775
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4959 4803 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 4957 907 2614 4454 2674 4917 3195 713 34...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4959 4803 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 4957 907 2614 4454 2674 4917 3195 713 34...
output:
4 4980 2490 1 2308 1 4298 1483 2513 1483 3616 1484 1844 1484 2253 1486 3367 1488 1549 1490 3023 1490 3665 1491 3539 1492 1834 1493 2988 1493 3021 1494 1805 1495 3698 1498 2281 1498 3032 1499 2957 1500 2233 1500 2258 1502 3569 1503 3226 1503 3330 1504 2065 1504 2836 1506 4564 1507 2001 1507 2902 1508...
input:
4 4980 2490 1 2308 1 4298 1483 2513 1483 3616 1484 1844 1484 2253 1486 3367 1488 1549 1490 3023 1490 3665 1491 3539 1492 1834 1493 2988 1493 3021 1494 1805 1495 3698 1498 2281 1498 3032 1499 2957 1500 2233 1500 2258 1502 3569 1503 3226 1503 3330 1504 2065 1504 2836 1506 4564 1507 2001 1507 2902 1508...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 21314775
Test #19:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1852kb
input:
5 5559540
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4959 4803 4227 1826 3375 2392 4075 3720 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4959 4803 4227 1826 3375 2392 4075 3720 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 2981 2586 2614 4454 3830 4565 3195 713 3...
output:
6 4980 2490 1 4465 2 3103 3 715 4 11 5 4811 6 2545 7 273 8 1782 9 3898 10 2874 12 2767 13 3620 14 1885 15 888 16 357 17 2322 18 1574 19 4328 20 4819 21 1259 22 922 23 1442 24 3863 25 3768 26 3336 27 4112 28 1147 29 4502 30 2567 31 4680 32 844 33 370 34 537 35 441 36 564 37 4199 38 4939 39 4253 40 44...
input:
6 4980 2490 1 4465 2 3103 3 715 4 11 5 4811 6 2545 7 273 8 1782 9 3898 10 2874 12 2767 13 3620 14 1885 15 888 16 357 17 2322 18 1574 19 4328 20 4819 21 1259 22 922 23 1442 24 3863 25 3768 26 3336 27 4112 28 1147 29 4502 30 2567 31 4680 32 844 33 370 34 537 35 441 36 564 37 4199 38 4939 39 4253 40 44...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 5559540
Test #20:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1848kb
input:
5 9424319
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4886 3989 1821 4160 3375 2392 4075 3720 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 3275 2307 4261 285 2981 2586 2614 4454 2674 4917 3195 713 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4886 3989 1821 4160 3375 2392 4075 3720 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 3275 2307 4261 285 2981 2586 2614 4454 2674 4917 3195 713 ...
output:
6 4980 2490 1 4465 2 3103 3 715 4 11 5 4811 6 2545 7 273 8 1782 9 3898 10 2874 12 2767 13 3620 14 1885 15 888 16 357 17 2322 18 1574 19 4181 20 4819 21 1259 22 489 23 1442 24 4345 25 3768 26 1997 27 4112 28 1147 29 4502 30 2567 31 4680 32 844 33 370 34 1785 35 441 36 564 37 1696 38 4939 39 4751 40 4...
input:
6 4980 2490 1 4465 2 3103 3 715 4 11 5 4811 6 2545 7 273 8 1782 9 3898 10 2874 12 2767 13 3620 14 1885 15 888 16 357 17 2322 18 1574 19 4181 20 4819 21 1259 22 489 23 1442 24 4345 25 3768 26 1997 27 4112 28 1147 29 4502 30 2567 31 4680 32 844 33 370 34 1785 35 441 36 564 37 1696 38 4939 39 4751 40 4...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 9424319
Test #21:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1888kb,1852kb
input:
5 10955780
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4886 3989 4227 1826 2801 3193 4426 4955 1607 4437 1187 69 2105 2988 3946 1876 3121 2003 4755 731 3275 2307 4261 285 4957 907 2614 4454 2674 4917 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4886 3989 4227 1826 2801 3193 4426 4955 1607 4437 1187 69 2105 2988 3946 1876 3121 2003 4755 731 3275 2307 4261 285 4957 907 2614 4454 2674 4917 3195 713 3...
output:
6 4980 2490 1 4465 2 3103 3 715 4 11 5 4811 6 2545 7 273 8 1782 9 3898 10 2874 12 2767 13 3620 14 1885 15 888 16 357 17 826 18 1574 19 4181 20 4819 21 1259 22 489 23 1442 24 4345 25 3768 26 3336 27 4112 28 1147 29 4502 30 2567 31 4680 32 515 33 1487 34 1785 35 441 36 2783 37 4199 38 4939 39 4751 40 ...
input:
6 4980 2490 1 4465 2 3103 3 715 4 11 5 4811 6 2545 7 273 8 1782 9 3898 10 2874 12 2767 13 3620 14 1885 15 888 16 357 17 826 18 1574 19 4181 20 4819 21 1259 22 489 23 1442 24 4345 25 3768 26 3336 27 4112 28 1147 29 4502 30 2567 31 4680 32 515 33 1487 34 1785 35 441 36 2783 37 4199 38 4939 39 4751 40 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 10955780
Test #22:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1888kb,1848kb
input:
7 19938721
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4886 3989 1821 4160 2801 3193 4426 4955 1607 4437 1187 69 2105 2988 3946 1876 3121 2003 4755 731 4515 583 4261 285 4957 907 2614 4454 3830 4565 3195 713 34...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4886 3989 1821 4160 2801 3193 4426 4955 1607 4437 1187 69 2105 2988 3946 1876 3121 2003 4755 731 4515 583 4261 285 4957 907 2614 4454 3830 4565 3195 713 34...
output:
8 4980 2490 1 4298 2 3103 2 3942 4 4767 5 1290 5 4811 6 2545 7 2665 9 2623 9 3898 10 2874 12 100 12 2767 13 431 15 1578 16 357 16 2793 17 826 17 4769 18 1574 19 1015 19 4181 20 4223 20 4819 21 3218 23 1442 25 115 26 3014 27 4112 28 1147 30 2464 32 515 33 1487 34 537 35 441 36 2101 37 2179 38 4939 39...
input:
8 4980 2490 1 4298 2 3103 2 3942 4 4767 5 1290 5 4811 6 2545 7 2665 9 2623 9 3898 10 2874 12 100 12 2767 13 431 15 1578 16 357 16 2793 17 826 17 4769 18 1574 19 1015 19 4181 20 4223 20 4819 21 3218 23 1442 25 115 26 3014 27 4112 28 1147 30 2464 32 515 33 1487 34 537 35 441 36 2101 37 2179 38 4939 39...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 19938721
Test #23:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1852kb
input:
7 5129508
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4886 3989 1821 4160 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 3275 2307 4261 285 2981 2586 2614 4454 3830 4565 3195 713 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4886 3989 1821 4160 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 3275 2307 4261 285 2981 2586 2614 4454 3830 4565 3195 713 ...
output:
8 4980 2490 1 4465 2 3103 3 1334 4 4767 5 1290 5 4811 6 2545 6 3353 7 2665 8 1782 9 2623 10 1572 11 2429 12 2767 13 431 13 3620 14 1885 14 4142 15 1578 17 2322 18 1574 19 4181 21 1259 22 922 23 338 24 3863 25 115 25 3768 26 1997 28 1147 28 2638 29 1806 31 1360 32 515 33 937 34 537 34 2969 35 417 37 ...
input:
8 4980 2490 1 4465 2 3103 3 1334 4 4767 5 1290 5 4811 6 2545 6 3353 7 2665 8 1782 9 2623 10 1572 11 2429 12 2767 13 431 13 3620 14 1885 14 4142 15 1578 17 2322 18 1574 19 4181 21 1259 22 922 23 338 24 3863 25 115 25 3768 26 1997 28 1147 28 2638 29 1806 31 1360 32 515 33 937 34 537 34 2969 35 417 37 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 5129508
Test #24:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
7 15332941
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4959 4803 4227 1826 2801 3193 4075 3720 1607 4437 1187 69 2105 2988 3946 1876 3121 2003 4755 731 4515 583 4261 285 4957 907 2614 4454 2674 4917 3195 713 34...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4959 4803 4227 1826 2801 3193 4075 3720 1607 4437 1187 69 2105 2988 3946 1876 3121 2003 4755 731 4515 583 4261 285 4957 907 2614 4454 2674 4917 3195 713 34...
output:
8 4980 2490 1 4465 2 3103 3 1334 4 4767 5 1290 5 4811 6 2545 6 3353 7 2665 8 1782 9 2623 10 1572 11 2429 12 2767 13 431 13 3620 14 1885 14 4142 15 1664 17 2322 18 1574 19 1505 21 1259 22 922 23 338 24 3863 25 115 25 3768 26 1997 28 1147 28 2638 29 1806 31 1360 32 844 32 2012 33 4633 35 417 36 2783 3...
input:
8 4980 2490 1 4465 2 3103 3 1334 4 4767 5 1290 5 4811 6 2545 6 3353 7 2665 8 1782 9 2623 10 1572 11 2429 12 2767 13 431 13 3620 14 1885 14 4142 15 1664 17 2322 18 1574 19 1505 21 1259 22 922 23 338 24 3863 25 115 25 3768 26 1997 28 1147 28 2638 29 1806 31 1360 32 844 32 2012 33 4633 35 417 36 2783 3...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 15332941
Subtask #3:
score: 65
Accepted
Test #25:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1852kb
input:
1 355365355024496523
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 4316 3117 4886 3989 1821 4160 2801 3193 4426 4955 899 1679 1187 69 2105 2988 3946 1876 4281 1560 3084 1781 3275 2307 4261 285 4957 907 2614 4454 2674 4917 3195 713 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 4316 3117 4886 3989 1821 4160 2801 3193 4426 4955 899 1679 1187 69 2105 2988 3946 1876 4281 1560 3084 1781 3275 2307 4261 285 4957 907 2614 4454 2674 4917 3195 713 ...
output:
2 4980 2736 2 1981 3 3172 4 4767 5 1290 6 3353 8 1782 8 3329 9 2623 10 3196 11 2429 13 431 13 3620 14 1885 15 1664 16 2793 18 1574 19 4181 20 895 21 4962 22 922 23 1442 24 3863 25 178 26 3014 26 3336 27 1615 27 3765 29 1806 29 4502 30 3529 31 1360 31 4680 32 515 34 1785 36 2101 36 2783 37 2179 37 41...
input:
2 4980 2736 2 1981 3 3172 4 4767 5 1290 6 3353 8 1782 8 3329 9 2623 10 3196 11 2429 13 431 13 3620 14 1885 15 1664 16 2793 18 1574 19 4181 20 895 21 4962 22 922 23 1442 24 3863 25 178 26 3014 26 3336 27 1615 27 3765 29 1806 29 4502 30 3529 31 1360 31 4680 32 515 34 1785 36 2101 36 2783 37 2179 37 41...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 355365355024496523
Test #26:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1856kb
input:
1 727827999106414164
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4959 4803 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 2397 3866 4281 1560 4755 731 3275 2307 3604 3767 4957 907 2614 4454 3830 4565 3195 713 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4959 4803 4227 1826 3375 2392 4426 4955 1607 4437 1187 69 4883 3891 2397 3866 4281 1560 4755 731 3275 2307 3604 3767 4957 907 2614 4454 3830 4565 3195 713 ...
output:
2 4980 2736 1 4759 2 3103 2 3942 5 4534 6 3353 8 1782 8 3329 9 669 10 1572 11 3374 12 100 12 2767 13 431 13 3620 14 1885 15 1664 16 2793 18 1574 19 1505 20 4223 20 4819 21 3218 22 922 23 2022 24 3863 25 178 26 3014 26 3336 27 1867 27 4112 29 3395 31 1360 31 4680 32 515 34 537 36 2101 36 2783 37 2179...
input:
2 4980 2736 1 4759 2 3103 2 3942 5 4534 6 3353 8 1782 8 3329 9 669 10 1572 11 3374 12 100 12 2767 13 431 13 3620 14 1885 15 1664 16 2793 18 1574 19 1505 20 4223 20 4819 21 3218 22 922 23 2022 24 3863 25 178 26 3014 26 3336 27 1867 27 4112 29 3395 31 1360 31 4680 32 515 34 537 36 2101 36 2783 37 2179...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 727827999106414164
Test #27:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1888kb,1848kb
input:
1 656410143989222955
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4886 3989 4227 1826 2801 3193 4075 3720 1607 4437 1187 69 2105 2988 3946 1876 3121 2003 4755 731 4515 583 3604 3767 2981 2586 2614 4454 3830 4565 1402 4813...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 497 4378 4886 3989 4227 1826 2801 3193 4075 3720 1607 4437 1187 69 2105 2988 3946 1876 3121 2003 4755 731 4515 583 3604 3767 2981 2586 2614 4454 3830 4565 1402 4813...
output:
2 4980 2736 2 3103 2 3942 3 3172 4 4767 5 1290 6 3353 7 2665 8 1782 8 3329 9 2623 10 3196 11 2429 13 2310 14 1885 15 1664 16 2793 17 2322 17 3929 18 1574 19 4181 20 895 21 3218 22 489 23 1442 24 4345 25 178 26 3014 26 3336 27 1615 27 3765 29 3395 30 3529 31 1360 31 4680 32 844 34 537 36 564 37 2179 ...
input:
2 4980 2736 2 3103 2 3942 3 3172 4 4767 5 1290 6 3353 7 2665 8 1782 8 3329 9 2623 10 3196 11 2429 13 2310 14 1885 15 1664 16 2793 17 2322 17 3929 18 1574 19 4181 20 895 21 3218 22 489 23 1442 24 4345 25 178 26 3014 26 3336 27 1615 27 3765 29 3395 30 3529 31 1360 31 4680 32 844 34 537 36 564 37 2179 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 656410143989222955
Test #28:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
1 410366615149657534
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 4316 3117 4886 3989 1821 4160 2801 3193 4075 3720 899 1679 628 3913 2105 2988 3946 1876 4281 1560 4755 731 4515 583 4261 285 4957 907 3971 167 3830 4565 1402 4813 4...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 4316 3117 4886 3989 1821 4160 2801 3193 4075 3720 899 1679 628 3913 2105 2988 3946 1876 4281 1560 4755 731 4515 583 4261 285 4957 907 3971 167 3830 4565 1402 4813 4...
output:
2 4980 2736 2 1981 5 4534 6 3353 7 2665 8 232 8 1210 9 669 10 3196 11 3374 12 100 12 2767 13 2310 14 1885 15 888 16 150 18 3177 18 3971 19 4181 20 895 21 4962 22 489 23 2022 24 4345 25 115 25 3768 26 3391 27 1615 27 3765 29 1806 29 4502 31 3894 32 844 34 1785 36 2101 36 2783 37 661 38 1740 38 4415 3...
input:
2 4980 2736 2 1981 5 4534 6 3353 7 2665 8 232 8 1210 9 669 10 3196 11 3374 12 100 12 2767 13 2310 14 1885 15 888 16 150 18 3177 18 3971 19 4181 20 895 21 4962 22 489 23 2022 24 4345 25 115 25 3768 26 3391 27 1615 27 3765 29 1806 29 4502 31 3894 32 844 34 1785 36 2101 36 2783 37 661 38 1740 38 4415 3...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 410366615149657534
Test #29:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1856kb
input:
1 298090682780948428
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 4316 3117 4959 4803 1821 4160 3375 2392 4426 4955 899 1679 1187 69 4883 3891 3946 1876 4281 1560 4755 731 3275 2307 4261 285 2981 2586 2614 4454 2674 4917 3195 713 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4980 4316 3117 4959 4803 1821 4160 3375 2392 4426 4955 899 1679 1187 69 4883 3891 3946 1876 4281 1560 4755 731 3275 2307 4261 285 2981 2586 2614 4454 2674 4917 3195 713 ...
output:
2 4980 2736 1 4759 2 3103 2 3942 5 4534 6 131 8 1782 8 3329 9 669 10 3196 11 3374 12 100 12 2767 13 431 13 3620 14 4146 15 1664 16 2793 18 1574 19 1505 20 895 21 3218 22 922 23 2022 24 3863 25 115 25 3768 26 3014 26 3336 27 1615 27 3765 28 1139 28 4280 29 3395 31 1360 31 4680 32 515 34 537 36 564 37...
input:
2 4980 2736 1 4759 2 3103 2 3942 5 4534 6 131 8 1782 8 3329 9 669 10 3196 11 3374 12 100 12 2767 13 431 13 3620 14 4146 15 1664 16 2793 18 1574 19 1505 20 895 21 3218 22 922 23 2022 24 3863 25 115 25 3768 26 3014 26 3336 27 1615 27 3765 28 1139 28 4280 29 3395 31 1360 31 4680 32 515 34 537 36 564 37...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 298090682780948428
Test #30:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
3 969441916331132577
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 4316 3117 4886 3989 4227 1826 3375 2392 4075 3720 899 1679 1187 69 4883 3891 3946 1876 4281 1560 3084 1781 3275 2307 3604 3767 2981 2586 2614 4454 3830 4565 3195 71...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 4316 3117 4886 3989 4227 1826 3375 2392 4075 3720 899 1679 1187 69 4883 3891 3946 1876 4281 1560 3084 1781 3275 2307 3604 3767 2981 2586 2614 4454 3830 4565 3195 71...
output:
4 4980 2490 1 2308 1 4298 1468 1875 1468 4040 1469 4533 1470 2694 1471 4145 1472 2075 1473 3540 1474 2188 1475 2185 1476 3108 1477 2523 1477 3125 1478 3960 1479 3366 1479 3775 1480 2888 1480 4562 1481 3605 1481 3687 1482 1886 1482 4289 1484 4331 1485 2677 1485 4412 1486 1889 1486 2231 1487 4307 1488...
input:
4 4980 2490 1 2308 1 4298 1468 1875 1468 4040 1469 4533 1470 2694 1471 4145 1472 2075 1473 3540 1474 2188 1475 2185 1476 3108 1477 2523 1477 3125 1478 3960 1479 3366 1479 3775 1480 2888 1480 4562 1481 3605 1481 3687 1482 1886 1482 4289 1484 4331 1485 2677 1485 4412 1486 1889 1486 2231 1487 4307 1488...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 969441916331132577
Test #31:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1888kb,1848kb
input:
3 929489812741933634
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 4316 3117 4959 4803 4227 1826 3375 2392 4075 3720 899 1679 628 3913 4883 3891 3946 1876 4281 1560 3084 1781 3275 2307 3604 3767 2981 2586 3971 167 2674 4917 3195 71...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 4316 3117 4959 4803 4227 1826 3375 2392 4075 3720 899 1679 628 3913 4883 3891 3946 1876 4281 1560 3084 1781 3275 2307 3604 3767 2981 2586 3971 167 2674 4917 3195 71...
output:
4 4980 2490 1 4465 1 4759 1231 1902 1477 3125 1478 1511 1479 3458 1479 4726 1480 2888 1480 4562 1481 2060 1481 4856 1482 1886 1482 4289 1484 1844 1484 2253 1485 2677 1485 4412 1486 3367 1487 4307 1488 1549 1489 4266 1489 4373 1490 1831 1491 3207 1491 4489 1492 2055 1492 2710 1493 2988 1493 3021 1494...
input:
4 4980 2490 1 4465 1 4759 1231 1902 1477 3125 1478 1511 1479 3458 1479 4726 1480 2888 1480 4562 1481 2060 1481 4856 1482 1886 1482 4289 1484 1844 1484 2253 1485 2677 1485 4412 1486 3367 1487 4307 1488 1549 1489 4266 1489 4373 1490 1831 1491 3207 1491 4489 1492 2055 1492 2710 1493 2988 1493 3021 1494...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 929489812741933634
Test #32:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
3 144032041325838295
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4959 4803 1821 4160 3375 2392 4426 4955 899 1679 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 4957 907 2614 4454 3830 4565 3195 713 423...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4959 4803 1821 4160 3375 2392 4426 4955 899 1679 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 4261 285 4957 907 2614 4454 3830 4565 3195 713 423...
output:
4 4980 2490 1 2308 1 4298 1473 4332 1474 2188 1475 2185 1476 3108 1477 2523 1477 3125 1478 3960 1479 3458 1479 4726 1480 1761 1480 3825 1481 2060 1481 4856 1482 1886 1482 4289 1483 2513 1483 3616 1484 1844 1484 2253 1485 2677 1485 4412 1486 3367 1488 1549 1490 3023 1490 3665 1491 3207 1491 4489 1492...
input:
4 4980 2490 1 2308 1 4298 1473 4332 1474 2188 1475 2185 1476 3108 1477 2523 1477 3125 1478 3960 1479 3458 1479 4726 1480 1761 1480 3825 1481 2060 1481 4856 1482 1886 1482 4289 1483 2513 1483 3616 1484 1844 1484 2253 1485 2677 1485 4412 1486 3367 1488 1549 1490 3023 1490 3665 1491 3207 1491 4489 1492...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 144032041325838295
Test #33:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1888kb,1848kb
input:
3 832110946250826180
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4959 4803 1821 4160 2801 3193 4075 3720 1607 4437 628 3913 2105 2988 2397 3866 3121 2003 3084 1781 3275 2307 3604 3767 4957 907 3971 167 3830 4565 3195 713...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4959 4803 1821 4160 2801 3193 4075 3720 1607 4437 628 3913 2105 2988 2397 3866 3121 2003 3084 1781 3275 2307 3604 3767 4957 907 3971 167 3830 4565 3195 713...
output:
4 4980 2490 1 4465 1 4759 1231 1902 1445 2102 1445 2372 1446 1603 1447 2984 1447 3468 1448 4250 1448 4841 1449 3464 1450 1876 1450 3946 1451 4338 1452 2062 1453 4386 1455 2555 1455 4565 1456 2293 1456 3858 1457 1727 1457 4885 1458 4594 1459 3684 1459 4968 1461 4701 1464 2785 1464 3266 1465 1579 1465...
input:
4 4980 2490 1 4465 1 4759 1231 1902 1445 2102 1445 2372 1446 1603 1447 2984 1447 3468 1448 4250 1448 4841 1449 3464 1450 1876 1450 3946 1451 4338 1452 2062 1453 4386 1455 2555 1455 4565 1456 2293 1456 3858 1457 1727 1457 4885 1458 4594 1459 3684 1459 4968 1461 4701 1464 2785 1464 3266 1465 1579 1465...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 832110946250826180
Test #34:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1844kb
input:
3 85728715707691821
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4886 3989 1821 4160 3375 2392 4075 3720 899 1679 1187 69 4883 3891 2397 3866 3121 2003 3084 1781 3275 2307 4261 285 4957 907 2614 4454 3830 4565 3195 713 4...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4980 497 4378 4886 3989 1821 4160 3375 2392 4075 3720 899 1679 1187 69 4883 3891 2397 3866 3121 2003 3084 1781 3275 2307 4261 285 4957 907 2614 4454 3830 4565 3195 713 4...
output:
4 4980 2490 1 4465 1 4759 1470 2694 1471 4145 1472 2075 1473 2407 1473 4332 1474 2189 1474 3757 1475 2185 1476 3108 1477 3844 1478 3960 1479 3366 1479 3775 1480 1761 1480 3825 1481 3605 1481 3687 1482 2406 1482 3323 1483 2513 1483 3616 1484 4331 1486 1889 1486 2231 1488 1549 1490 1831 1491 3207 1491...
input:
4 4980 2490 1 4465 1 4759 1470 2694 1471 4145 1472 2075 1473 2407 1473 4332 1474 2189 1474 3757 1475 2185 1476 3108 1477 3844 1478 3960 1479 3366 1479 3775 1480 1761 1480 3825 1481 3605 1481 3687 1482 2406 1482 3323 1483 2513 1483 3616 1484 4331 1486 1889 1486 2231 1488 1549 1490 1831 1491 3207 1491...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 85728715707691821
Test #35:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
5 777434612360931036
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4959 4803 4227 1826 3375 2392 4075 3720 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 3604 3767 4957 907 2614 4454 2674 4917 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4959 4803 4227 1826 3375 2392 4075 3720 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 3604 3767 4957 907 2614 4454 2674 4917 3195 713 3...
output:
6 4980 2490 1 4298 2 1981 3 715 4 11 5 4534 6 2545 7 979 8 1782 9 3898 10 2874 12 2767 13 3620 14 1885 15 1664 16 357 17 2322 18 1574 19 4328 20 4819 21 1608 22 922 23 3616 24 3863 25 3943 26 1997 27 4112 28 1147 29 4502 30 2567 31 4680 32 844 33 1487 34 1785 35 3514 36 2783 37 1696 38 4939 39 4253 ...
input:
6 4980 2490 1 4298 2 1981 3 715 4 11 5 4534 6 2545 7 979 8 1782 9 3898 10 2874 12 2767 13 3620 14 1885 15 1664 16 357 17 2322 18 1574 19 4328 20 4819 21 1608 22 922 23 3616 24 3863 25 3943 26 1997 27 4112 28 1147 29 4502 30 2567 31 4680 32 844 33 1487 34 1785 35 3514 36 2783 37 1696 38 4939 39 4253 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 777434612360931036
Test #36:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1852kb
input:
5 705262511549880222
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4886 3989 1821 4160 3375 2392 4075 3720 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 3604 3767 2981 2586 2614 4454 3830 4565 1402 4813...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4886 3989 1821 4160 3375 2392 4075 3720 1607 4437 1187 69 4883 3891 3946 1876 3121 2003 4755 731 4515 583 3604 3767 2981 2586 2614 4454 3830 4565 1402 4813...
output:
6 4980 2490 1 4465 2 1981 3 715 4 4870 5 4811 6 2545 7 273 8 1782 9 1962 10 3196 11 1687 12 2767 13 2310 14 1885 15 1664 16 357 17 826 18 1574 19 4181 20 895 21 1608 22 922 23 1442 24 3863 25 3943 26 3336 27 1615 28 1147 29 2655 30 2567 31 4680 32 844 33 370 34 537 35 3514 36 564 37 4199 38 4939 39 ...
input:
6 4980 2490 1 4465 2 1981 3 715 4 4870 5 4811 6 2545 7 273 8 1782 9 1962 10 3196 11 1687 12 2767 13 2310 14 1885 15 1664 16 357 17 826 18 1574 19 4181 20 895 21 1608 22 922 23 1442 24 3863 25 3943 26 3336 27 1615 28 1147 29 2655 30 2567 31 4680 32 844 33 370 34 537 35 3514 36 564 37 4199 38 4939 39 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 705262511549880222
Test #37:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1844kb
input:
5 510318082834167951
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 4316 3117 4886 3989 4227 1826 3375 2392 4075 3720 1607 4437 628 3913 4883 3891 2397 3866 4281 1560 4755 731 4515 583 4261 285 4957 907 3971 167 2674 4917 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 4316 3117 4886 3989 4227 1826 3375 2392 4075 3720 1607 4437 628 3913 4883 3891 2397 3866 4281 1560 4755 731 4515 583 4261 285 4957 907 3971 167 2674 4917 3195 713 3...
output:
6 4980 2490 1 4298 2 3103 3 715 4 4870 5 4534 6 2545 7 273 8 1782 9 1962 10 2874 11 1687 12 2767 13 2310 14 1885 15 888 16 357 17 2322 18 3971 19 4181 20 4819 21 1259 22 489 23 3616 24 4345 25 3768 26 1997 27 4112 28 1147 29 2655 30 3529 31 4680 32 844 33 1487 34 1785 35 441 36 2783 37 1696 38 4939 ...
input:
6 4980 2490 1 4298 2 3103 3 715 4 4870 5 4534 6 2545 7 273 8 1782 9 1962 10 2874 11 1687 12 2767 13 2310 14 1885 15 888 16 357 17 2322 18 3971 19 4181 20 4819 21 1259 22 489 23 3616 24 4345 25 3768 26 1997 27 4112 28 1147 29 2655 30 3529 31 4680 32 844 33 1487 34 1785 35 441 36 2783 37 1696 38 4939 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 510318082834167951
Test #38:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1844kb
input:
5 914858813253258744
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 4316 3117 4959 4803 1821 4160 3375 2392 4075 3720 899 1679 628 3913 4883 3891 2397 3866 4281 1560 3084 1781 4515 583 3604 3767 2981 2586 3971 167 3830 4565 1402 481...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 4316 3117 4959 4803 1821 4160 3375 2392 4075 3720 899 1679 628 3913 4883 3891 2397 3866 4281 1560 3084 1781 4515 583 3604 3767 2981 2586 3971 167 3830 4565 1402 481...
output:
6 4980 2490 1 4298 2 1981 3 3172 4 11 5 4811 6 2545 7 979 8 1210 9 3898 10 3196 12 4543 13 3620 14 1885 15 888 16 150 17 826 18 3971 19 4328 20 895 21 1608 22 489 23 1442 24 4345 25 3768 26 1997 27 1615 28 1147 29 2655 30 2567 31 1286 32 844 33 370 34 1785 35 441 36 564 37 1696 38 4415 39 4751 40 32...
input:
6 4980 2490 1 4298 2 1981 3 3172 4 11 5 4811 6 2545 7 979 8 1210 9 3898 10 3196 12 4543 13 3620 14 1885 15 888 16 150 17 826 18 3971 19 4328 20 895 21 1608 22 489 23 1442 24 4345 25 3768 26 1997 27 1615 28 1147 29 2655 30 2567 31 1286 32 844 33 370 34 1785 35 441 36 564 37 1696 38 4415 39 4751 40 32...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 914858813253258744
Test #39:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
5 659635316746638238
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4886 3989 1821 4160 2801 3193 4426 4955 899 1679 628 3913 2105 2988 2397 3866 4281 1560 3084 1781 4515 583 3604 3767 2981 2586 3971 167 3830 4565 1402 4813...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4980 497 4378 4886 3989 1821 4160 2801 3193 4426 4955 899 1679 628 3913 2105 2988 2397 3866 4281 1560 3084 1781 4515 583 3604 3767 2981 2586 3971 167 3830 4565 1402 4813...
output:
6 4980 2490 1 4298 2 3103 3 715 4 4870 5 4534 6 131 7 273 8 1210 9 1962 10 3196 11 1687 12 4543 13 2310 14 212 15 1664 16 150 17 2322 18 3971 19 4181 20 895 21 1259 22 922 23 3616 24 3863 25 3768 26 1997 27 1615 28 4280 29 4502 30 3529 31 1286 32 515 33 370 34 1785 35 441 36 564 37 1696 38 4415 39 4...
input:
6 4980 2490 1 4298 2 3103 3 715 4 4870 5 4534 6 131 7 273 8 1210 9 1962 10 3196 11 1687 12 4543 13 2310 14 212 15 1664 16 150 17 2322 18 3971 19 4181 20 895 21 1259 22 922 23 3616 24 3863 25 3768 26 1997 27 1615 28 4280 29 4502 30 3529 31 1286 32 515 33 370 34 1785 35 441 36 564 37 1696 38 4415 39 4...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 659635316746638238
Test #40:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1888kb,1848kb
input:
7 858490260563149759
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4886 3989 1821 4160 2801 3193 4075 3720 899 1679 628 3913 2105 2988 2397 3866 3121 2003 3084 1781 3275 2307 3604 3767 2981 2586 3971 167 2674 4917 1402 481...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4886 3989 1821 4160 2801 3193 4075 3720 899 1679 628 3913 2105 2988 2397 3866 3121 2003 3084 1781 3275 2307 3604 3767 2981 2586 3971 167 2674 4917 1402 481...
output:
8 4980 2490 3 1334 6 4884 7 2665 8 232 8 1210 9 669 10 3196 14 4146 15 1664 17 2322 19 4181 20 895 22 922 24 3863 26 1997 27 1615 28 1147 28 2638 29 3395 31 1286 32 844 32 2012 33 937 35 1919 35 3514 37 661 38 1740 38 4415 39 1227 39 4253 41 3946 42 3470 42 3535 43 944 43 4100 44 1485 44 3734 46 224...
input:
8 4980 2490 3 1334 6 4884 7 2665 8 232 8 1210 9 669 10 3196 14 4146 15 1664 17 2322 19 4181 20 895 22 922 24 3863 26 1997 27 1615 28 1147 28 2638 29 3395 31 1286 32 844 32 2012 33 937 35 1919 35 3514 37 661 38 1740 38 4415 39 1227 39 4253 41 3946 42 3470 42 3535 43 944 43 4100 44 1485 44 3734 46 224...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 858490260563149759
Test #41:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1888kb,1848kb
input:
7 860058643727731209
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4886 3989 4227 1826 2801 3193 4426 4955 899 1679 628 3913 2105 2988 3946 1876 4281 1560 4755 731 4515 583 3604 3767 2981 2586 3971 167 2674 4917 1402 4813 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4886 3989 4227 1826 2801 3193 4426 4955 899 1679 628 3913 2105 2988 3946 1876 4281 1560 4755 731 4515 583 3604 3767 2981 2586 3971 167 2674 4917 1402 4813 ...
output:
8 4980 2490 3 3172 3 3173 6 4884 7 2665 8 1782 9 669 10 1572 12 2767 14 4146 15 1664 17 2322 19 4181 22 489 24 155 26 3014 28 1147 28 2638 29 3395 30 3529 30 4016 31 1360 32 515 33 937 34 537 34 2969 35 1919 35 3514 38 4939 39 1227 39 4253 42 3470 42 3535 43 3352 43 4078 44 1485 44 3734 46 598 47 29...
input:
8 4980 2490 3 3172 3 3173 6 4884 7 2665 8 1782 9 669 10 1572 12 2767 14 4146 15 1664 17 2322 19 4181 22 489 24 155 26 3014 28 1147 28 2638 29 3395 30 3529 30 4016 31 1360 32 515 33 937 34 537 34 2969 35 1919 35 3514 38 4939 39 1227 39 4253 42 3470 42 3535 43 3352 43 4078 44 1485 44 3734 46 598 47 29...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 860058643727731209
Test #42:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1848kb
input:
7 718861404514377808
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4959 4803 4227 1826 3375 2392 4426 4955 899 1679 628 3913 4883 3891 3946 1876 3121 2003 4755 731 4515 583 3604 3767 4957 907 3971 167 2674 4917 1402 4813 4...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4959 4803 4227 1826 3375 2392 4426 4955 899 1679 628 3913 4883 3891 3946 1876 3121 2003 4755 731 4515 583 3604 3767 4957 907 3971 167 2674 4917 1402 4813 4...
output:
8 4980 2490 1 4465 3 3172 3 3173 6 2545 6 3353 7 979 8 232 8 1210 9 669 10 3196 12 2767 14 1885 14 4142 15 1578 17 2322 19 1505 20 895 22 922 24 3863 26 3014 27 1615 28 1147 28 2638 29 1806 31 1286 32 515 33 937 35 1919 35 3514 36 2783 38 1740 38 4415 39 1227 39 4253 42 3470 42 3535 43 3352 43 4078 ...
input:
8 4980 2490 1 4465 3 3172 3 3173 6 2545 6 3353 7 979 8 232 8 1210 9 669 10 3196 12 2767 14 1885 14 4142 15 1578 17 2322 19 1505 20 895 22 922 24 3863 26 3014 27 1615 28 1147 28 2638 29 1806 31 1286 32 515 33 937 35 1919 35 3514 36 2783 38 1740 38 4415 39 1227 39 4253 42 3470 42 3535 43 3352 43 4078 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 718861404514377808
Test #43:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1844kb
input:
7 659192688464047828
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4959 4803 4227 1826 2801 3193 4426 4955 899 1679 1187 69 2105 2988 3946 1876 3121 2003 4755 731 3275 2307 3604 3767 4957 907 2614 4454 2674 4917 1402 4813 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4959 4803 4227 1826 2801 3193 4426 4955 899 1679 1187 69 2105 2988 3946 1876 3121 2003 4755 731 3275 2307 3604 3767 4957 907 2614 4454 2674 4917 1402 4813 ...
output:
8 4980 2490 1 4465 2 3103 3 1334 6 2545 6 3353 7 2665 8 232 8 1210 9 669 10 3196 14 1885 14 4142 15 1664 17 826 18 1574 19 1505 20 895 21 1259 22 489 24 155 25 115 25 3768 26 1997 27 1615 29 1806 30 3529 30 4016 31 1286 32 515 33 937 34 537 34 2969 35 417 36 2783 37 661 38 1740 38 4415 39 1227 39 42...
input:
8 4980 2490 1 4465 2 3103 3 1334 6 2545 6 3353 7 2665 8 232 8 1210 9 669 10 3196 14 1885 14 4142 15 1664 17 826 18 1574 19 1505 20 895 21 1259 22 489 24 155 25 115 25 3768 26 1997 27 1615 29 1806 30 3529 30 4016 31 1286 32 515 33 937 34 537 34 2969 35 417 36 2783 37 661 38 1740 38 4415 39 1227 39 42...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 659192688464047828
Test #44:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1852kb
input:
7 685730986714800201
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4959 4803 4227 1826 3375 2392 4426 4955 1607 4437 628 3913 4883 3891 2397 3866 3121 2003 4755 731 4515 583 3604 3767 4957 907 3971 167 2674 4917 3195 713 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4980 497 4378 4959 4803 4227 1826 3375 2392 4426 4955 1607 4437 628 3913 4883 3891 2397 3866 3121 2003 4755 731 4515 583 3604 3767 4957 907 3971 167 2674 4917 3195 713 3...
output:
8 4980 2490 1 4465 3 3172 3 3173 4 4767 6 2545 6 3353 7 979 8 232 8 1210 9 2623 10 3196 11 2429 12 2767 14 1885 14 4142 15 1578 17 826 19 1505 20 895 22 922 24 3863 25 115 25 3768 26 1997 27 1615 29 1806 30 3529 30 4016 31 1286 32 515 33 937 35 417 36 2783 37 661 38 1740 38 4415 39 4398 41 3946 42 7...
input:
8 4980 2490 1 4465 3 3172 3 3173 4 4767 6 2545 6 3353 7 979 8 232 8 1210 9 2623 10 3196 11 2429 12 2767 14 1885 14 4142 15 1578 17 826 19 1505 20 895 22 922 24 3863 25 115 25 3768 26 1997 27 1615 29 1806 30 3529 30 4016 31 1286 32 515 33 937 35 417 36 2783 37 661 38 1740 38 4415 39 4398 41 3946 42 7...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 685730986714800201