QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#592975 | #8726. Magic Show | -Ofast | 100 ✓ | 0ms | 1900kb | C++20 | 1.3kb | 2024-09-27 10:43:14 | 2024-09-27 10:43:14 |
Judging History
Alice
#include <bits/stdc++.h>
#define mp make_pair
#define fir first
#define sec second
using namespace std;
mt19937 rnd(20080511);
long long setN(int n);
int fa[5005];
vector <pair<int,int>> Alice(){
long long X=setN(4098);
vector <int> id;
for(int i=0;i<4096;i++)
id.push_back(i+3);
shuffle(id.begin(),id.end(),rnd);
vector <pair<int,int>> res;
res.push_back(mp(2,1));fa[2]=1;
int cnt=0;
for(int i=0;i<4096;i+=64){
for(int j=i;j<i+64;j++){
fa[id[j]]=rnd()%(id[j]/2)+1;
if((X>>cnt)&1){
fa[id[j]]+=(id[j]/2)-1;
}
}
cnt++;
}
for(int i=3;i<=4098;i++)
res.push_back(mp(i,fa[i]));
return res;
}
/*
int main(){
ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
Alice();
return 0;
}
*/
Bob
#include <bits/stdc++.h>
#define mp make_pair
#define fir first
#define sec second
using namespace std;
mt19937 rnd(20080511);
int fa[5005],inv[5005];
long long Bob(vector <pair<int,int>> p){
vector <int> id;
for(int i=0;i<4096;i++)
id.push_back(i+3);
shuffle(id.begin(),id.end(),rnd);
for(int i=0;i<4096;i++)
inv[id[i]]=i/64;
long long ans=0;
for(auto it:p){
swap(it.fir,it.sec);
if(it.fir==2)continue;
if(it.sec>it.fir/2)
ans|=1ll<<(inv[it.fir]);
}
return ans;
}
/*
int main(){
ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
Bob();
return 0;
}
*/
詳細信息
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1868kb
input:
1 4005
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 18 34 5 35...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 18 34 5 35...
output:
2 4098 3472 1 2 1 3 1 4 1 9 1 16 1 32 1 49 1 54 1 194 1 592 1 626 1 701 1 922 1 1214 2 5 2 6 2 10 2 30 2 59 2 283 2 397 2 2721 3 7 3 37 3 135 3 154 3 304 3 385 3 450 3 773 3 796 3 2252 3 2767 4 19 4 35 4 41 4 56 4 89 4 158 4 162 4 232 4 249 4 426 4 3897 5 11 5 13 5 14 5 27 5 34 5 82 5 87 5 168 5 267...
input:
2 4098 3472 1 2 1 3 1 4 1 9 1 16 1 32 1 49 1 54 1 194 1 592 1 626 1 701 1 922 1 1214 2 5 2 6 2 10 2 30 2 59 2 283 2 397 2 2721 3 7 3 37 3 135 3 154 3 304 3 385 3 450 3 773 3 796 3 2252 3 2767 4 19 4 35 4 41 4 56 4 89 4 158 4 162 4 232 4 249 4 426 4 3897 5 11 5 13 5 14 5 27 5 34 5 82 5 87 5 168 5 267...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 4005
Test #2:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1868kb
input:
1 459
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 1 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 3 34 5 35 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 1 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 3 34 5 35 ...
output:
2 4098 3472 1 2 1 3 1 4 1 9 1 16 1 18 1 32 1 49 1 54 1 194 1 592 1 626 1 701 1 922 1 1214 2 5 2 6 2 10 2 30 2 59 2 283 2 397 2 2721 3 7 3 33 3 37 3 113 3 135 3 154 3 385 3 450 3 773 3 2252 3 2767 4 19 4 41 4 56 4 89 4 158 4 162 4 232 4 249 4 426 4 3897 5 11 5 13 5 14 5 27 5 34 5 82 5 87 5 168 5 267 ...
input:
2 4098 3472 1 2 1 3 1 4 1 9 1 16 1 18 1 32 1 49 1 54 1 194 1 592 1 626 1 701 1 922 1 1214 2 5 2 6 2 10 2 30 2 59 2 283 2 397 2 2721 3 7 3 33 3 37 3 113 3 135 3 154 3 385 3 450 3 773 3 2252 3 2767 4 19 4 41 4 56 4 89 4 158 4 162 4 232 4 249 4 426 4 3897 5 11 5 13 5 14 5 27 5 34 5 82 5 87 5 168 5 267 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 459
Test #3:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1872kb
input:
1 2495
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 1 19 4 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 13 32 1 33 3 34 5 35...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 1 19 4 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 13 32 1 33 3 34 5 35...
output:
2 4098 3472 1 2 1 3 1 4 1 9 1 16 1 18 1 32 1 49 1 54 1 194 1 592 1 626 1 701 1 922 1 1214 2 5 2 6 2 10 2 59 2 283 2 397 2 2721 3 7 3 33 3 37 3 113 3 135 3 154 3 385 3 450 3 773 3 796 3 2252 3 2767 4 19 4 41 4 56 4 89 4 158 4 162 4 232 4 249 4 426 4 3897 5 11 5 13 5 14 5 27 5 34 5 82 5 168 5 267 5 60...
input:
2 4098 3472 1 2 1 3 1 4 1 9 1 16 1 18 1 32 1 49 1 54 1 194 1 592 1 626 1 701 1 922 1 1214 2 5 2 6 2 10 2 59 2 283 2 397 2 2721 3 7 3 33 3 37 3 113 3 135 3 154 3 385 3 450 3 773 3 796 3 2252 3 2767 4 19 4 41 4 56 4 89 4 158 4 162 4 232 4 249 4 426 4 3897 5 11 5 13 5 14 5 27 5 34 5 82 5 168 5 267 5 60...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 2495
Test #4:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1900kb,1852kb
input:
3 1560
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 13 32 1 33 18 34 5 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 13 32 1 33 18 34 5 3...
output:
4 4098 2049 1 2 1 3 1 4 1 8 1 9 1 16 1 32 1 49 1 54 1 117 1 194 1 537 1 592 1 626 1 701 1 922 1 1214 37 177 37 1128 46 530 46 3769 52 202 52 540 63 2887 63 3497 85 767 85 1090 90 584 90 1877 93 2610 103 757 103 2010 106 1338 106 1908 115 264 115 463 115 593 118 1626 118 3726 124 1024 124 1795 136 36...
input:
4 4098 2049 1 2 1 3 1 4 1 8 1 9 1 16 1 32 1 49 1 54 1 117 1 194 1 537 1 592 1 626 1 701 1 922 1 1214 37 177 37 1128 46 530 46 3769 52 202 52 540 63 2887 63 3497 85 767 85 1090 90 584 90 1877 93 2610 103 757 103 2010 106 1338 106 1908 115 264 115 463 115 593 118 1626 118 3726 124 1024 124 1795 136 36...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 1560
Test #5:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1900kb,1848kb
input:
3 3594
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 18 34 5 35...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 18 34 5 35...
output:
4 4098 2049 2 5 5 11 5 13 5 14 5 17 5 27 5 34 5 38 5 51 5 82 5 87 5 168 5 267 5 602 5 1452 5 1824 5 2436 5 2511 37 177 37 1128 46 530 46 3769 52 202 52 540 63 2887 63 3497 85 230 85 1090 90 1877 93 2610 98 425 98 1870 98 2372 106 1338 106 1908 115 264 115 463 115 593 118 1626 118 3726 124 1024 124 1...
input:
4 4098 2049 2 5 5 11 5 13 5 14 5 17 5 27 5 34 5 38 5 51 5 82 5 87 5 168 5 267 5 602 5 1452 5 1824 5 2436 5 2511 37 177 37 1128 46 530 46 3769 52 202 52 540 63 2887 63 3497 85 230 85 1090 90 1877 93 2610 98 425 98 1870 98 2372 106 1338 106 1908 115 264 115 463 115 593 118 1626 118 3726 124 1024 124 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 3594
Test #6:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
3 1750
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 13 32 1 33 18 34 5 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 13 32 1 33 18 34 5 3...
output:
4 4098 2049 2 5 5 11 5 13 5 14 5 17 5 27 5 34 5 38 5 51 5 82 5 168 5 267 5 602 5 1452 5 1824 5 2436 5 2511 37 177 37 1128 46 530 46 3769 52 202 52 540 63 2887 77 691 77 2376 85 767 85 1090 90 1877 93 2610 103 757 103 2010 106 1338 106 1908 115 264 115 463 115 593 118 1626 124 1024 124 1795 136 368 1...
input:
4 4098 2049 2 5 5 11 5 13 5 14 5 17 5 27 5 34 5 38 5 51 5 82 5 168 5 267 5 602 5 1452 5 1824 5 2436 5 2511 37 177 37 1128 46 530 46 3769 52 202 52 540 63 2887 77 691 77 2376 85 767 85 1090 90 1877 93 2610 103 757 103 2010 106 1338 106 1908 115 264 115 463 115 593 118 1626 124 1024 124 1795 136 368 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 1750
Test #7:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1852kb
input:
5 4878
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 1 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 3 34 5 35 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 1 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 3 34 5 35 ...
output:
6 4098 2075 1 2 2 6 2 10 2 20 2 30 2 59 2 283 2 397 2 2721 3 7 3 33 3 37 3 135 3 142 3 154 3 190 3 385 3 450 3 773 3 796 3 1091 3 2252 3 2767 4 19 4 41 4 56 4 89 4 93 4 158 4 162 4 232 4 249 4 426 4 1034 4 1068 4 3897 5 13 8 40 8 52 8 164 8 322 8 398 8 460 8 559 8 589 8 1296 8 1597 8 1847 8 2029 8 2...
input:
6 4098 2075 1 2 2 6 2 10 2 20 2 30 2 59 2 283 2 397 2 2721 3 7 3 33 3 37 3 135 3 142 3 154 3 190 3 385 3 450 3 773 3 796 3 1091 3 2252 3 2767 4 19 4 41 4 56 4 89 4 93 4 158 4 162 4 232 4 249 4 426 4 1034 4 1068 4 3897 5 13 8 40 8 52 8 164 8 322 8 398 8 460 8 559 8 589 8 1296 8 1597 8 1847 8 2029 8 2...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 4878
Test #8:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1900kb,1848kb
input:
5 1223
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 18 34 5 35...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 18 34 5 35...
output:
6 4098 2054 1 3 2 5 2 6 2 10 2 20 2 30 2 59 2 283 2 397 2 2721 3 37 3 113 3 135 3 142 3 154 3 190 3 385 3 450 3 773 3 1091 3 2252 3 2767 4 19 4 35 4 41 4 56 4 89 4 93 4 158 4 162 4 232 4 249 4 376 4 426 4 1068 4 3897 7 29 8 40 8 52 8 86 8 164 8 398 8 460 8 589 8 1296 8 1597 8 1847 8 2029 8 2440 8 26...
input:
6 4098 2054 1 3 2 5 2 6 2 10 2 20 2 30 2 59 2 283 2 397 2 2721 3 37 3 113 3 135 3 142 3 154 3 190 3 385 3 450 3 773 3 1091 3 2252 3 2767 4 19 4 35 4 41 4 56 4 89 4 93 4 158 4 162 4 232 4 249 4 376 4 426 4 1068 4 3897 7 29 8 40 8 52 8 86 8 164 8 398 8 460 8 589 8 1296 8 1597 8 1847 8 2029 8 2440 8 26...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 1223
Test #9:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1852kb
input:
5 648
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 1 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 3 34 5 35 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 1 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 3 34 5 35 ...
output:
6 4098 2087 1 2 2 6 2 10 2 20 2 30 2 59 2 283 2 397 2 2721 3 7 3 33 3 37 3 135 3 142 3 154 3 190 3 304 3 385 3 450 3 773 3 796 3 1091 3 2252 3 2767 4 19 4 41 4 56 4 89 4 93 4 158 4 162 4 232 4 249 4 376 4 426 4 1068 4 3897 5 13 8 40 8 52 8 86 8 164 8 322 8 398 8 460 8 559 8 589 8 1296 8 1597 8 1847 ...
input:
6 4098 2087 1 2 2 6 2 10 2 20 2 30 2 59 2 283 2 397 2 2721 3 7 3 33 3 37 3 135 3 142 3 154 3 190 3 304 3 385 3 450 3 773 3 796 3 1091 3 2252 3 2767 4 19 4 41 4 56 4 89 4 93 4 158 4 162 4 232 4 249 4 376 4 426 4 1068 4 3897 5 13 8 40 8 52 8 86 8 164 8 322 8 398 8 460 8 559 8 589 8 1296 8 1597 8 1847 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 648
Test #10:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1852kb
input:
7 4475
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 1 19 4 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 13 32 1 33 3 34 5 35...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 1 19 4 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 13 32 1 33 3 34 5 35...
output:
8 4098 2049 17 3993 21 2920 25 2106 25 2314 46 3769 54 3872 59 1506 59 2132 60 1266 60 1585 60 2232 63 2887 63 3497 70 535 75 3608 77 2376 78 1779 78 3419 78 3895 80 2264 81 1199 81 3363 86 639 86 2306 88 3924 90 1877 91 2905 93 2610 94 3049 94 3943 98 1870 98 2372 106 1338 107 2720 107 3626 108 123...
input:
8 4098 2049 17 3993 21 2920 25 2106 25 2314 46 3769 54 3872 59 1506 59 2132 60 1266 60 1585 60 2232 63 2887 63 3497 70 535 75 3608 77 2376 78 1779 78 3419 78 3895 80 2264 81 1199 81 3363 86 639 86 2306 88 3924 90 1877 91 2905 93 2610 94 3049 94 3943 98 1870 98 2372 106 1338 107 2720 107 3626 108 123...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 4475
Test #11:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1900kb,1852kb
input:
7 4240
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 1 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 13 32 1 33 3 34 5 35...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 1 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 13 32 1 33 3 34 5 35...
output:
8 4098 2049 21 2920 25 2106 46 3769 50 3539 56 1757 59 1506 59 2132 60 1266 60 2232 63 2887 65 892 77 691 77 2376 78 1779 78 3895 80 2264 86 639 88 3924 90 1877 91 2905 91 3462 93 2610 94 3049 94 3943 97 3221 98 1870 98 2372 103 2010 106 1338 106 1908 108 1238 108 1455 110 1853 110 2350 110 2363 113...
input:
8 4098 2049 21 2920 25 2106 46 3769 50 3539 56 1757 59 1506 59 2132 60 1266 60 2232 63 2887 65 892 77 691 77 2376 78 1779 78 3895 80 2264 86 639 88 3924 90 1877 91 2905 91 3462 93 2610 94 3049 94 3943 97 3221 98 1870 98 2372 103 2010 106 1338 106 1908 108 1238 108 1455 110 1853 110 2350 110 2363 113...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 4240
Test #12:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1852kb
input:
7 1291
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 18 34 5 35...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 18 34 5 35...
output:
8 4098 2049 21 2920 25 2106 25 2314 46 3769 54 3872 60 1266 60 1585 60 2232 63 2887 63 3497 70 535 70 2834 75 3201 77 2376 78 1779 78 3895 80 2264 81 1199 86 639 86 2306 88 3924 90 1877 91 2905 93 2610 94 3049 94 3943 98 1870 98 2372 101 1027 101 1106 103 2308 106 1338 107 2720 107 3626 108 1238 108...
input:
8 4098 2049 21 2920 25 2106 25 2314 46 3769 54 3872 60 1266 60 1585 60 2232 63 2887 63 3497 70 535 70 2834 75 3201 77 2376 78 1779 78 3895 80 2264 81 1199 86 639 86 2306 88 3924 90 1877 91 2905 93 2610 94 3049 94 3943 98 1870 98 2372 101 1027 101 1106 103 2308 106 1338 107 2720 107 3626 108 1238 108...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 1291
Subtask #2:
score: 30
Accepted
Test #13:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1872kb
input:
1 17476204
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 11 13 5 14 5 15 13 16 8 17 5 18 1 19 12 20 2 21 6 22 9 23 20 24 9 25 12 26 21 27 17 28 10 29 7 30 2 31 13 32 1 33 3 34 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 11 13 5 14 5 15 13 16 8 17 5 18 1 19 12 20 2 21 6 22 9 23 20 24 9 25 12 26 21 27 17 28 10 29 7 30 2 31 13 32 1 33 3 34 ...
output:
2 4098 3472 1 2 1 3 1 4 1 9 1 18 1 32 1 49 1 54 1 194 1 592 1 626 1 922 1 1214 2 5 2 6 2 10 2 30 2 59 2 283 2 397 2 2721 3 7 3 33 3 37 3 135 3 304 3 385 3 450 3 773 3 2252 4 41 4 56 4 158 4 162 4 232 4 426 4 1034 4 3897 5 11 5 13 5 14 5 34 5 82 5 87 5 168 5 267 5 602 5 1452 5 1824 6 21 6 50 6 66 6 8...
input:
2 4098 3472 1 2 1 3 1 4 1 9 1 18 1 32 1 49 1 54 1 194 1 592 1 626 1 922 1 1214 2 5 2 6 2 10 2 30 2 59 2 283 2 397 2 2721 3 7 3 33 3 37 3 135 3 304 3 385 3 450 3 773 3 2252 4 41 4 56 4 158 4 162 4 232 4 426 4 1034 4 3897 5 11 5 13 5 14 5 34 5 82 5 87 5 168 5 267 5 602 5 1452 5 1824 6 21 6 50 6 66 6 8...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 17476204
Test #14:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1900kb,1868kb
input:
1 11926600
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 3 6 2 7 5 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 12 18 9 19 12 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 27 32 1 33 18 34 5 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 3 6 2 7 5 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 12 18 9 19 12 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 27 32 1 33 18 34 5 ...
output:
2 4098 3472 1 2 1 3 1 4 1 9 1 16 1 32 1 49 1 194 1 592 1 626 1 701 1 922 1 1214 2 6 2 10 2 30 2 59 2 283 2 397 2 2721 3 5 3 37 3 113 3 135 3 154 3 304 3 385 3 450 4 41 4 56 4 158 4 162 4 232 4 426 4 1034 4 3897 5 7 5 11 5 13 5 14 5 27 5 34 5 82 5 87 5 168 5 267 5 602 5 1452 5 1824 6 12 6 21 6 50 6 6...
input:
2 4098 3472 1 2 1 3 1 4 1 9 1 16 1 32 1 49 1 194 1 592 1 626 1 701 1 922 1 1214 2 6 2 10 2 30 2 59 2 283 2 397 2 2721 3 5 3 37 3 113 3 135 3 154 3 304 3 385 3 450 4 41 4 56 4 158 4 162 4 232 4 426 4 1034 4 3897 5 7 5 11 5 13 5 14 5 27 5 34 5 82 5 87 5 168 5 267 5 602 5 1452 5 1824 6 12 6 21 6 50 6 6...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 11926600
Test #15:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1872kb
input:
1 16602378
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 3 6 2 7 5 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 12 18 9 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 27 32 1 33 18 34 5 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 3 6 2 7 5 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 12 18 9 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 27 32 1 33 18 34 5 3...
output:
2 4098 3472 1 2 1 3 1 4 1 9 1 16 1 32 1 49 1 194 1 592 1 626 1 701 1 922 1 1214 2 6 2 10 2 30 2 59 2 283 2 397 2 2721 3 5 3 37 3 113 3 135 3 154 3 385 3 450 3 796 3 2767 4 19 4 41 4 56 4 89 4 158 4 162 4 232 4 249 4 426 4 1034 4 3897 5 7 5 11 5 13 5 14 5 27 5 34 5 82 5 87 5 168 5 267 5 602 5 1452 5 ...
input:
2 4098 3472 1 2 1 3 1 4 1 9 1 16 1 32 1 49 1 194 1 592 1 626 1 701 1 922 1 1214 2 6 2 10 2 30 2 59 2 283 2 397 2 2721 3 5 3 37 3 113 3 135 3 154 3 385 3 450 3 796 3 2767 4 19 4 41 4 56 4 89 4 158 4 162 4 232 4 249 4 426 4 1034 4 3897 5 7 5 11 5 13 5 14 5 27 5 34 5 82 5 87 5 168 5 267 5 602 5 1452 5 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 16602378
Test #16:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1852kb
input:
3 13129243
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 13 32 1 33 18 34 5 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 13 32 1 33 18 34 5 3...
output:
4 4098 2049 2 5 5 11 5 13 5 14 5 17 5 27 5 34 5 38 5 51 5 82 5 168 5 267 5 602 5 1452 5 1824 5 2436 5 2511 37 177 37 200 46 530 46 3769 52 540 63 3497 80 2264 90 1877 93 2610 106 1338 106 1908 124 1024 124 1795 130 653 130 1832 138 733 138 890 148 449 150 2381 153 1013 158 1157 158 2374 162 1719 162...
input:
4 4098 2049 2 5 5 11 5 13 5 14 5 17 5 27 5 34 5 38 5 51 5 82 5 168 5 267 5 602 5 1452 5 1824 5 2436 5 2511 37 177 37 200 46 530 46 3769 52 540 63 3497 80 2264 90 1877 93 2610 106 1338 106 1908 124 1024 124 1795 130 653 130 1832 138 733 138 890 148 449 150 2381 153 1013 158 1157 158 2374 162 1719 162...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 13129243
Test #17:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
3 7892141
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 12 18 9 19 12 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 18 34 5 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 12 18 9 19 12 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 18 34 5 ...
output:
4 4098 2049 1 2 1 3 1 4 1 8 1 9 1 16 1 32 1 49 1 54 1 117 1 194 1 537 1 592 1 626 1 701 1 922 1 1214 37 200 46 530 46 3769 52 540 90 1877 106 1338 106 1908 118 1626 124 1024 124 1795 130 653 138 890 148 449 150 2381 163 1177 163 3088 174 3036 179 416 179 1133 193 613 196 1417 197 741 197 1741 197 34...
input:
4 4098 2049 1 2 1 3 1 4 1 8 1 9 1 16 1 32 1 49 1 54 1 117 1 194 1 537 1 592 1 626 1 701 1 922 1 1214 37 200 46 530 46 3769 52 540 90 1877 106 1338 106 1908 118 1626 124 1024 124 1795 130 653 138 890 148 449 150 2381 163 1177 163 3088 174 3036 179 416 179 1133 193 613 196 1417 197 741 197 1741 197 34...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 7892141
Test #18:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1856kb
input:
3 21314775
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 3 6 2 7 5 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 8 17 5 18 9 19 12 20 2 21 6 22 9 23 10 24 9 25 12 26 21 27 17 28 10 29 7 30 16 31 27 32 1 33 18 34 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 3 6 2 7 5 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 8 17 5 18 9 19 12 20 2 21 6 22 9 23 10 24 9 25 12 26 21 27 17 28 10 29 7 30 16 31 27 32 1 33 18 34 ...
output:
4 4098 2049 3 5 5 7 5 11 5 13 5 14 5 17 5 34 5 38 5 51 5 82 5 168 5 267 5 602 5 1452 5 1824 5 2436 5 2511 46 530 52 540 63 2887 80 2264 90 1877 93 2610 106 1338 106 1908 118 1626 148 449 150 2381 150 3296 153 1013 161 3378 174 3036 186 420 196 1417 203 2258 205 576 207 1705 208 2976 208 3362 211 109...
input:
4 4098 2049 3 5 5 7 5 11 5 13 5 14 5 17 5 34 5 38 5 51 5 82 5 168 5 267 5 602 5 1452 5 1824 5 2436 5 2511 46 530 52 540 63 2887 80 2264 90 1877 93 2610 106 1338 106 1908 118 1626 148 449 150 2381 150 3296 153 1013 161 3378 174 3036 186 420 196 1417 203 2258 205 576 207 1705 208 2976 208 3362 211 109...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 21314775
Test #19:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1856kb
input:
5 5559540
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 3 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 12 18 9 19 4 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 13 32 1 33 18 34 5 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 3 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 12 18 9 19 4 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 13 32 1 33 18 34 5 ...
output:
6 4098 2061 1 3 2 6 2 10 2 20 2 59 2 283 2 397 2 2721 3 5 3 37 3 113 3 135 3 154 3 304 3 385 3 450 3 1091 3 2767 4 19 4 35 4 41 4 56 4 93 4 158 4 162 4 232 4 249 4 426 4 1068 4 3897 7 80 8 52 8 86 8 164 8 460 8 589 8 1296 8 1597 8 1847 8 2029 8 2440 8 2650 8 3207 8 3770 9 18 9 22 9 24 9 26 9 65 9 76...
input:
6 4098 2061 1 3 2 6 2 10 2 20 2 59 2 283 2 397 2 2721 3 5 3 37 3 113 3 135 3 154 3 304 3 385 3 450 3 1091 3 2767 4 19 4 35 4 41 4 56 4 93 4 158 4 162 4 232 4 249 4 426 4 1068 4 3897 7 80 8 52 8 86 8 164 8 460 8 589 8 1296 8 1597 8 1847 8 2029 8 2440 8 2650 8 3207 8 3770 9 18 9 22 9 24 9 26 9 65 9 76...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 5559540
Test #20:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1852kb
input:
5 9424319
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 3 6 2 7 5 8 1 9 1 10 2 11 5 12 11 13 5 14 5 15 13 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 27 32 1 33 18 34 5...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 3 6 2 7 5 8 1 9 1 10 2 11 5 12 11 13 5 14 5 15 13 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 16 31 27 32 1 33 18 34 5...
output:
6 4098 2072 1 2 1 4 1 8 1 9 1 16 1 32 1 49 1 117 1 194 1 592 1 626 1 701 1 922 1 1214 3 5 5 7 5 11 5 14 5 17 5 27 5 34 5 38 5 51 5 82 5 168 5 267 5 602 5 1452 5 1824 5 2511 6 21 6 50 6 60 6 66 6 74 6 131 6 603 6 925 6 1673 6 2826 6 3717 10 28 10 71 10 343 10 611 10 663 10 989 10 1086 10 3565 12 25 1...
input:
6 4098 2072 1 2 1 4 1 8 1 9 1 16 1 32 1 49 1 117 1 194 1 592 1 626 1 701 1 922 1 1214 3 5 5 7 5 11 5 14 5 17 5 27 5 34 5 38 5 51 5 82 5 168 5 267 5 602 5 1452 5 1824 5 2511 6 21 6 50 6 60 6 66 6 74 6 131 6 603 6 925 6 1673 6 2826 6 3717 10 28 10 71 10 343 10 611 10 663 10 989 10 1086 10 3565 12 25 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 9424319
Test #21:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1852kb
input:
5 10955780
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 3 6 2 7 5 8 1 9 1 10 2 11 5 12 11 13 5 14 5 15 13 16 1 17 5 18 9 19 12 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 27 32 1 33 18 34 5...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 3 6 2 7 5 8 1 9 1 10 2 11 5 12 11 13 5 14 5 15 13 16 1 17 5 18 9 19 12 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 27 32 1 33 18 34 5...
output:
6 4098 2064 1 2 1 4 1 8 1 9 1 16 1 32 1 49 1 117 1 194 1 537 1 592 1 626 1 701 1 922 1 1214 3 5 5 11 5 13 5 14 5 17 5 27 5 34 5 38 5 51 5 82 5 87 5 168 5 267 5 602 5 1452 5 1824 5 2436 5 2511 6 21 6 50 6 60 6 66 6 74 6 131 6 205 6 329 6 603 6 925 6 1294 6 1673 6 2826 6 3717 7 83 10 23 10 28 10 71 10...
input:
6 4098 2064 1 2 1 4 1 8 1 9 1 16 1 32 1 49 1 117 1 194 1 537 1 592 1 626 1 701 1 922 1 1214 3 5 5 11 5 13 5 14 5 17 5 27 5 34 5 38 5 51 5 82 5 87 5 168 5 267 5 602 5 1452 5 1824 5 2436 5 2511 6 21 6 50 6 60 6 66 6 74 6 131 6 205 6 329 6 603 6 925 6 1294 6 1673 6 2826 6 3717 7 83 10 23 10 28 10 71 10...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 10955780
Test #22:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1900kb,1848kb
input:
7 19938721
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 8 17 12 18 9 19 12 20 2 21 6 22 9 23 20 24 9 25 12 26 21 27 17 28 10 29 7 30 2 31 13 32 1 33 18 34 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 8 17 12 18 9 19 12 20 2 21 6 22 9 23 20 24 9 25 12 26 21 27 17 28 10 29 7 30 2 31 13 32 1 33 18 34 ...
output:
8 4098 2049 25 2106 25 2314 28 1569 28 1951 54 3872 56 1757 59 1506 59 2132 60 1266 60 2232 63 2887 65 981 75 3201 75 3608 77 2376 78 1779 78 3419 78 3895 86 639 86 1776 86 2306 88 3924 90 1877 91 2905 94 3049 94 3943 98 1870 98 2372 99 1419 99 3250 102 3003 103 2308 106 1338 107 1783 107 2720 107 3...
input:
8 4098 2049 25 2106 25 2314 28 1569 28 1951 54 3872 56 1757 59 1506 59 2132 60 1266 60 2232 63 2887 65 981 75 3201 75 3608 77 2376 78 1779 78 3419 78 3895 86 639 86 1776 86 2306 88 3924 90 1877 91 2905 94 3049 94 3943 98 1870 98 2372 99 1419 99 3250 102 3003 103 2308 106 1338 107 1783 107 2720 107 3...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 19938721
Test #23:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1900kb,1852kb
input:
7 5129508
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 3 6 2 7 3 8 1 9 1 10 2 11 5 12 11 13 5 14 5 15 13 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 18 34 5 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 3 6 2 7 3 8 1 9 1 10 2 11 5 12 11 13 5 14 5 15 13 16 1 17 5 18 9 19 4 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 18 34 5 ...
output:
8 4098 2049 17 3993 21 2920 25 2106 34 1126 34 3676 46 3769 51 3766 54 3872 55 2747 56 1757 60 1266 60 1585 60 2232 63 3497 66 1030 70 2834 75 3201 75 3608 77 2376 78 1779 78 3419 78 3895 79 2949 80 2264 86 2306 88 3924 90 1877 91 2905 91 3462 93 2610 94 3049 94 3943 97 3221 98 1870 98 2372 99 1419 ...
input:
8 4098 2049 17 3993 21 2920 25 2106 34 1126 34 3676 46 3769 51 3766 54 3872 55 2747 56 1757 60 1266 60 1585 60 2232 63 3497 66 1030 70 2834 75 3201 75 3608 77 2376 78 1779 78 3419 78 3895 79 2949 80 2264 86 2306 88 3924 90 1877 91 2905 91 3462 93 2610 94 3049 94 3943 97 3221 98 1870 98 2372 99 1419 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 5129508
Test #24:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1852kb
input:
7 15332941
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 2 6 2 7 5 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 12 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 27 32 1 33 18 34 5 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 2 6 2 7 5 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 1 17 5 18 9 19 12 20 2 21 6 22 9 23 10 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 27 32 1 33 18 34 5 3...
output:
8 4098 2049 25 2106 28 3301 46 530 46 3769 54 203 54 3872 60 1266 60 1360 60 1585 60 2232 65 892 65 981 66 1030 70 421 77 691 77 2376 79 1800 80 2264 90 1877 94 3049 99 813 99 3250 103 2010 103 2308 106 1338 106 1908 111 716 115 264 115 593 118 1626 118 3726 122 2048 122 2211 122 3118 124 1795 125 1...
input:
8 4098 2049 25 2106 28 3301 46 530 46 3769 54 203 54 3872 60 1266 60 1360 60 1585 60 2232 65 892 65 981 66 1030 70 421 77 691 77 2376 79 1800 80 2264 90 1877 94 3049 99 813 99 3250 103 2010 103 2308 106 1338 106 1908 111 716 115 264 115 593 118 1626 118 3726 122 2048 122 2211 122 3118 124 1795 125 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 15332941
Subtask #3:
score: 65
Accepted
Test #25:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1900kb,1872kb
input:
1 355365355024496523
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 3 6 4 7 5 8 1 9 4 10 2 11 9 12 11 13 5 14 11 15 13 16 8 17 12 18 9 19 12 20 2 21 15 22 19 23 10 24 20 25 12 26 21 27 17 28 23 29 20 30 2 31 27 32 1 33...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 3 6 4 7 5 8 1 9 4 10 2 11 9 12 11 13 5 14 11 15 13 16 8 17 12 18 9 19 12 20 2 21 15 22 19 23 10 24 20 25 12 26 21 27 17 28 23 29 20 30 2 31 27 32 1 33...
output:
2 4098 3472 1 2 1 3 1 4 1 32 1 49 1 194 1 626 1 922 1 1214 2 10 2 30 2 283 2 397 3 5 3 385 3 450 3 796 4 6 4 9 4 89 4 158 4 426 4 3897 5 7 5 13 5 87 5 267 5 602 5 2436 6 50 6 66 6 205 6 603 6 1673 6 2826 6 3717 7 80 7 83 8 16 8 164 8 322 8 460 8 589 8 1296 8 1847 8 2029 8 3207 8 3770 9 11 9 18 10 71...
input:
2 4098 3472 1 2 1 3 1 4 1 32 1 49 1 194 1 626 1 922 1 1214 2 10 2 30 2 283 2 397 3 5 3 385 3 450 3 796 4 6 4 9 4 89 4 158 4 426 4 3897 5 7 5 13 5 87 5 267 5 602 5 2436 6 50 6 66 6 205 6 603 6 1673 6 2826 6 3717 7 80 7 83 8 16 8 164 8 322 8 460 8 589 8 1296 8 1847 8 2029 8 3207 8 3770 9 11 9 18 10 71...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 355365355024496523
Test #26:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1872kb
input:
1 727827999106414164
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 2 5 2 6 2 7 3 8 1 9 4 10 6 11 9 12 11 13 10 14 11 15 13 16 1 17 12 18 9 19 12 20 11 21 6 22 19 23 10 24 9 25 23 26 9 27 5 28 23 29 7 30 16 31 13 32 1 33 1...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 2 5 2 6 2 7 3 8 1 9 4 10 6 11 9 12 11 13 10 14 11 15 13 16 1 17 12 18 9 19 12 20 11 21 6 22 19 23 10 24 9 25 23 26 9 27 5 28 23 29 7 30 16 31 13 32 1 33 1...
output:
2 4098 3472 1 2 1 3 1 16 1 32 1 49 1 54 1 194 1 592 1 626 1 701 2 4 2 5 2 6 2 59 2 2721 3 7 3 37 3 135 3 154 3 304 3 385 3 773 3 2252 4 9 4 35 4 41 4 89 4 158 4 162 4 232 4 426 4 1034 4 3897 5 27 5 34 5 82 5 168 5 602 5 1452 5 1824 5 2436 6 10 6 21 6 50 6 66 6 85 6 131 6 205 6 329 6 1294 7 29 7 80 7...
input:
2 4098 3472 1 2 1 3 1 16 1 32 1 49 1 54 1 194 1 592 1 626 1 701 2 4 2 5 2 6 2 59 2 2721 3 7 3 37 3 135 3 154 3 304 3 385 3 773 3 2252 4 9 4 35 4 41 4 89 4 158 4 162 4 232 4 426 4 1034 4 3897 5 27 5 34 5 82 5 168 5 602 5 1452 5 1824 5 2436 6 10 6 21 6 50 6 66 6 85 6 131 6 205 6 329 6 1294 7 29 7 80 7...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 727827999106414164
Test #27:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1900kb,1868kb
input:
1 656410143989222955
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 2 5 2 6 4 7 3 8 1 9 1 10 2 11 9 12 6 13 10 14 11 15 7 16 8 17 12 18 9 19 4 20 11 21 6 22 19 23 20 24 9 25 12 26 21 27 17 28 23 29 20 30 2 31 13 32 1 33 18...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 2 5 2 6 4 7 3 8 1 9 1 10 2 11 9 12 6 13 10 14 11 15 7 16 8 17 12 18 9 19 4 20 11 21 6 22 19 23 20 24 9 25 12 26 21 27 17 28 23 29 20 30 2 31 13 32 1 33 18...
output:
2 4098 3472 1 2 1 3 1 9 1 32 1 49 1 54 1 592 2 4 2 5 2 10 2 30 2 397 2 2721 3 7 3 37 3 773 3 796 3 2252 3 2767 4 6 4 19 4 56 4 158 4 162 4 232 4 249 4 426 4 1034 5 87 5 168 5 602 6 12 6 21 6 50 6 66 6 85 6 329 6 603 6 1294 6 1673 7 15 8 16 8 164 8 322 8 589 8 1296 8 1597 8 2029 8 3207 8 3770 9 11 9 ...
input:
2 4098 3472 1 2 1 3 1 9 1 32 1 49 1 54 1 592 2 4 2 5 2 10 2 30 2 397 2 2721 3 7 3 37 3 773 3 796 3 2252 3 2767 4 6 4 19 4 56 4 158 4 162 4 232 4 249 4 426 4 1034 5 87 5 168 5 602 6 12 6 21 6 50 6 66 6 85 6 329 6 603 6 1294 6 1673 7 15 8 16 8 164 8 322 8 589 8 1296 8 1597 8 2029 8 3207 8 3770 9 11 9 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 656410143989222955
Test #28:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1872kb
input:
1 410366615149657534
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 3 6 2 7 3 8 4 9 4 10 6 11 5 12 6 13 5 14 5 15 7 16 8 17 5 18 9 19 12 20 2 21 15 22 9 23 20 24 20 25 12 26 21 27 17 28 10 29 7 30 16 31 13 32 16 33 18 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 1 5 3 6 2 7 3 8 4 9 4 10 6 11 5 12 6 13 5 14 5 15 7 16 8 17 5 18 9 19 12 20 2 21 15 22 9 23 20 24 20 25 12 26 21 27 17 28 10 29 7 30 16 31 13 32 16 33 18 ...
output:
2 4098 3472 1 2 1 3 1 4 1 49 1 922 1 1214 2 6 2 59 2 283 2 397 2 2721 3 5 3 7 3 113 3 135 3 450 3 796 4 9 4 162 4 426 5 11 5 13 5 14 5 34 5 82 5 168 5 267 5 602 5 1452 5 1824 6 10 6 12 6 50 6 603 6 925 6 1673 6 2826 7 15 7 29 7 83 8 16 8 164 8 322 8 460 8 1847 8 3207 9 18 9 22 9 65 9 228 10 28 10 34...
input:
2 4098 3472 1 2 1 3 1 4 1 49 1 922 1 1214 2 6 2 59 2 283 2 397 2 2721 3 5 3 7 3 113 3 135 3 450 3 796 4 9 4 162 4 426 5 11 5 13 5 14 5 34 5 82 5 168 5 267 5 602 5 1452 5 1824 6 10 6 12 6 50 6 603 6 925 6 1673 6 2826 7 15 7 29 7 83 8 16 8 164 8 322 8 460 8 1847 8 3207 9 18 9 22 9 65 9 228 10 28 10 34...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 410366615149657534
Test #29:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1876kb
input:
1 298090682780948428
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 2 5 2 6 2 7 5 8 1 9 4 10 6 11 9 12 11 13 10 14 11 15 13 16 1 17 5 18 9 19 4 20 2 21 15 22 9 23 10 24 9 25 23 26 9 27 5 28 10 29 7 30 2 31 27 32 1 33 18 34...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4098 2 1 3 1 4 2 5 2 6 2 7 5 8 1 9 4 10 6 11 9 12 11 13 10 14 11 15 13 16 1 17 5 18 9 19 4 20 2 21 15 22 9 23 10 24 9 25 23 26 9 27 5 28 10 29 7 30 2 31 27 32 1 33 18 34...
output:
2 4098 3472 1 2 1 3 1 16 1 32 1 49 1 54 1 194 1 626 1 701 1 922 2 4 2 5 2 6 2 30 2 59 2 2721 3 135 3 154 3 304 3 385 3 450 3 773 3 2252 3 2767 4 9 4 19 4 56 4 89 4 158 4 249 4 426 4 3897 5 7 5 27 5 34 5 82 5 87 5 1452 5 1824 5 2436 6 10 6 66 6 85 6 131 6 205 6 3717 7 29 7 80 7 83 8 164 8 460 8 589 8...
input:
2 4098 3472 1 2 1 3 1 16 1 32 1 49 1 54 1 194 1 626 1 701 1 922 2 4 2 5 2 6 2 30 2 59 2 2721 3 135 3 154 3 304 3 385 3 450 3 773 3 2252 3 2767 4 9 4 19 4 56 4 89 4 158 4 249 4 426 4 3897 5 7 5 27 5 34 5 82 5 87 5 1452 5 1824 5 2436 6 10 6 66 6 85 6 131 6 205 6 3717 7 29 7 80 7 83 8 164 8 460 8 589 8...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 298090682780948428
Test #30:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
3 969441916331132577
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 4 7 3 8 1 9 4 10 6 11 5 12 11 13 5 14 5 15 13 16 8 17 5 18 9 19 4 20 11 21 15 22 9 23 20 24 9 25 12 26 21 27 17 28 10 29 20 30 2 31 13 32 1 33 18 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 4 7 3 8 1 9 4 10 6 11 5 12 11 13 5 14 5 15 13 16 8 17 5 18 9 19 4 20 11 21 15 22 9 23 20 24 9 25 12 26 21 27 17 28 10 29 20 30 2 31 13 32 1 33 18 ...
output:
4 4098 2049 19 45 37 1128 45 57 45 63 45 82 45 106 45 120 45 155 45 192 45 407 45 501 45 665 45 1362 45 2740 45 3113 45 3996 46 80 46 530 50 136 52 540 60 1360 60 1585 80 279 80 2264 87 3424 87 3678 90 584 91 118 91 399 94 3049 94 3943 103 757 103 2308 106 1908 108 1238 108 1261 115 264 115 593 117 ...
input:
4 4098 2049 19 45 37 1128 45 57 45 63 45 82 45 106 45 120 45 155 45 192 45 407 45 501 45 665 45 1362 45 2740 45 3113 45 3996 46 80 46 530 50 136 52 540 60 1360 60 1585 80 279 80 2264 87 3424 87 3678 90 584 91 118 91 399 94 3049 94 3943 103 757 103 2308 106 1908 108 1238 108 1261 115 264 115 593 117 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 969441916331132577
Test #31:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1848kb
input:
3 929489812741933634
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 4 7 5 8 4 9 4 10 6 11 5 12 11 13 10 14 5 15 13 16 1 17 12 18 1 19 4 20 11 21 15 22 9 23 10 24 20 25 12 26 9 27 5 28 10 29 20 30 2 31 27 32 1 33 3 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 4 7 5 8 4 9 4 10 6 11 5 12 11 13 10 14 5 15 13 16 1 17 12 18 1 19 4 20 11 21 15 22 9 23 10 24 20 25 12 26 9 27 5 28 10 29 20 30 2 31 27 32 1 33 3 ...
output:
4 4098 2049 7 80 19 45 25 2314 45 57 45 82 45 99 45 106 45 120 45 133 45 155 45 192 45 501 45 1362 45 2740 45 3113 45 3996 46 530 46 3769 50 136 50 3539 52 540 60 1585 63 2887 63 3497 70 535 74 272 74 1566 75 1675 75 3201 79 682 79 2949 85 230 88 491 94 160 97 795 97 3221 103 757 103 2308 108 1261 1...
input:
4 4098 2049 7 80 19 45 25 2314 45 57 45 82 45 99 45 106 45 120 45 133 45 155 45 192 45 501 45 1362 45 2740 45 3113 45 3996 46 530 46 3769 50 136 50 3539 52 540 60 1585 63 2887 63 3497 70 535 74 272 74 1566 75 1675 75 3201 79 682 79 2949 85 230 88 491 94 160 97 795 97 3221 103 757 103 2308 108 1261 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 929489812741933634
Test #32:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1848kb
input:
3 144032041325838295
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 8 17 5 18 9 19 12 20 2 21 6 22 19 23 10 24 20 25 23 26 21 27 17 28 23 29 20 30 16 31 13 32 16 33 18...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 2 6 2 7 3 8 1 9 1 10 2 11 5 12 6 13 5 14 5 15 7 16 8 17 5 18 9 19 12 20 2 21 6 22 19 23 10 24 20 25 23 26 21 27 17 28 23 29 20 30 16 31 13 32 16 33 18...
output:
4 4098 2049 19 45 29 1047 37 177 45 63 45 82 45 106 45 120 45 138 45 155 45 192 45 327 45 501 45 1362 45 3113 45 3996 48 454 48 1530 49 184 54 203 54 700 63 2887 66 1030 71 876 71 2675 78 1132 78 3419 85 230 98 425 103 757 103 2010 106 1338 106 1908 107 1783 108 1261 108 1455 112 3771 115 463 116 39...
input:
4 4098 2049 19 45 29 1047 37 177 45 63 45 82 45 106 45 120 45 138 45 155 45 192 45 327 45 501 45 1362 45 3113 45 3996 48 454 48 1530 49 184 54 203 54 700 63 2887 66 1030 71 876 71 2675 78 1132 78 3419 85 230 98 425 103 757 103 2010 106 1338 106 1908 107 1783 108 1261 108 1455 112 3771 115 463 116 39...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 144032041325838295
Test #33:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1856kb
input:
3 832110946250826180
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 3 6 4 7 3 8 4 9 1 10 6 11 5 12 11 13 10 14 5 15 13 16 1 17 12 18 1 19 12 20 11 21 6 22 19 23 10 24 20 25 12 26 9 27 5 28 23 29 20 30 2 31 13 32 16 33 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 1 5 3 6 4 7 3 8 4 9 1 10 6 11 5 12 11 13 10 14 5 15 13 16 1 17 12 18 1 19 12 20 11 21 6 22 19 23 10 24 20 25 12 26 9 27 5 28 23 29 20 30 2 31 13 32 16 33 ...
output:
4 4098 2049 1 2 1 3 1 4 1 9 1 16 1 18 1 49 1 194 1 537 1 592 1 626 1 701 1 1214 14 214 14 3965 46 80 46 3769 52 540 56 969 66 90 72 1552 77 408 77 2376 85 230 85 767 90 1877 94 792 94 3943 103 2308 106 1338 113 364 113 1887 121 155 134 2609 134 3859 136 368 150 3296 154 1606 154 3106 155 448 161 337...
input:
4 4098 2049 1 2 1 3 1 4 1 9 1 16 1 18 1 49 1 194 1 537 1 592 1 626 1 701 1 1214 14 214 14 3965 46 80 46 3769 52 540 56 969 66 90 72 1552 77 408 77 2376 85 230 85 767 90 1877 94 792 94 3943 103 2308 106 1338 113 364 113 1887 121 155 134 2609 134 3859 136 368 150 3296 154 1606 154 3106 155 448 161 337...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 832110946250826180
Test #34:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1852kb
input:
3 85728715707691821
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 2 5 3 6 2 7 3 8 1 9 1 10 2 11 9 12 11 13 5 14 11 15 13 16 1 17 5 18 1 19 12 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 3 34 5...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4098 2 1 3 1 4 2 5 3 6 2 7 3 8 1 9 1 10 2 11 9 12 11 13 5 14 11 15 13 16 1 17 5 18 1 19 12 20 2 21 6 22 9 23 20 24 9 25 12 26 9 27 5 28 10 29 7 30 2 31 13 32 1 33 3 34 5...
output:
4 4098 2049 1 2 1 3 1 8 1 9 1 16 1 18 1 32 1 49 1 117 1 194 1 537 1 626 1 701 1 922 37 177 51 864 51 1037 52 540 60 1266 63 3497 75 3201 78 1779 80 2264 106 1338 106 1908 115 264 115 593 118 1626 118 3726 121 374 130 931 136 368 150 2381 153 541 153 1013 159 1151 159 1159 160 359 163 1177 163 3088 1...
input:
4 4098 2049 1 2 1 3 1 8 1 9 1 16 1 18 1 32 1 49 1 117 1 194 1 537 1 626 1 701 1 922 37 177 51 864 51 1037 52 540 60 1266 63 3497 75 3201 78 1779 80 2264 106 1338 106 1908 115 264 115 593 118 1626 118 3726 121 374 130 931 136 368 150 2381 153 541 153 1013 159 1151 159 1159 160 359 163 1177 163 3088 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 85728715707691821
Test #35:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1852kb
input:
5 777434612360931036
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 3 6 4 7 5 8 1 9 1 10 6 11 9 12 6 13 5 14 11 15 7 16 8 17 12 18 9 19 12 20 11 21 6 22 19 23 10 24 20 25 12 26 21 27 17 28 23 29 7 30 16 31 27 32 16 33 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 3 6 4 7 5 8 1 9 1 10 6 11 9 12 6 13 5 14 11 15 7 16 8 17 12 18 9 19 12 20 11 21 6 22 19 23 10 24 20 25 12 26 21 27 17 28 23 29 7 30 16 31 27 32 16 33 ...
output:
6 4098 2073 1 2 1 3 1 8 1 9 1 49 1 117 1 194 1 537 1 592 1 626 1 1214 4 6 5 7 5 13 5 38 5 82 5 267 5 602 5 1452 6 10 6 21 6 50 6 60 6 66 6 329 6 1673 6 2826 6 3717 11 14 11 20 11 47 11 77 11 175 11 313 11 723 11 1333 11 2250 11 3656 12 25 15 42 15 46 15 63 15 160 15 1769 16 30 16 32 16 2421 17 27 17...
input:
6 4098 2073 1 2 1 3 1 8 1 9 1 49 1 117 1 194 1 537 1 592 1 626 1 1214 4 6 5 7 5 13 5 38 5 82 5 267 5 602 5 1452 6 10 6 21 6 50 6 60 6 66 6 329 6 1673 6 2826 6 3717 11 14 11 20 11 47 11 77 11 175 11 313 11 723 11 1333 11 2250 11 3656 12 25 15 42 15 46 15 63 15 160 15 1769 16 30 16 32 16 2421 17 27 17...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 777434612360931036
Test #36:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
5 705262511549880222
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 3 6 2 7 3 8 1 9 1 10 2 11 9 12 6 13 10 14 11 15 7 16 1 17 12 18 9 19 4 20 11 21 6 22 19 23 10 24 20 25 23 26 9 27 5 28 23 29 7 30 16 31 13 32 1 33 18 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 3 6 2 7 3 8 1 9 1 10 2 11 9 12 6 13 10 14 11 15 7 16 1 17 12 18 9 19 4 20 11 21 6 22 19 23 10 24 20 25 23 26 9 27 5 28 23 29 7 30 16 31 13 32 1 33 18 ...
output:
6 4098 2053 1 2 1 3 1 4 1 8 1 16 1 32 1 49 1 117 1 592 1 701 1 1214 5 27 5 34 5 82 5 168 5 267 5 602 5 1452 5 1824 6 12 6 21 6 50 6 66 6 131 6 603 6 3717 7 15 7 29 7 83 7 715 7 1483 9 11 10 13 10 23 10 71 10 611 10 663 10 989 10 1086 10 2094 11 14 11 20 11 47 11 175 11 220 11 723 11 1333 11 3656 17 ...
input:
6 4098 2053 1 2 1 3 1 4 1 8 1 16 1 32 1 49 1 117 1 592 1 701 1 1214 5 27 5 34 5 82 5 168 5 267 5 602 5 1452 5 1824 6 12 6 21 6 50 6 66 6 131 6 603 6 3717 7 15 7 29 7 83 7 715 7 1483 9 11 10 13 10 23 10 71 10 611 10 663 10 989 10 1086 10 2094 11 14 11 20 11 47 11 175 11 220 11 723 11 1333 11 3656 17 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 705262511549880222
Test #37:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1852kb
input:
5 510318082834167951
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 2 5 2 6 4 7 5 8 4 9 4 10 6 11 9 12 6 13 10 14 11 15 7 16 8 17 5 18 1 19 12 20 2 21 15 22 9 23 10 24 9 25 23 26 21 27 17 28 10 29 20 30 2 31 27 32 16 33 3 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 2 5 2 6 4 7 5 8 4 9 4 10 6 11 9 12 6 13 10 14 11 15 7 16 8 17 5 18 1 19 12 20 2 21 15 22 9 23 10 24 9 25 23 26 21 27 17 28 10 29 20 30 2 31 27 32 16 33 3 ...
output:
6 4098 2085 1 2 2 5 2 20 2 30 2 59 2 2721 3 33 3 113 3 135 3 142 3 190 3 450 3 773 3 796 3 2252 4 6 6 10 6 50 6 60 6 66 6 74 6 85 6 329 6 603 7 15 7 715 8 16 8 40 8 52 8 86 8 164 8 322 8 460 8 559 8 589 8 1296 8 2440 8 2650 8 3207 8 3770 9 11 9 22 9 24 9 65 9 76 9 228 12 19 13 947 14 58 14 257 17 27...
input:
6 4098 2085 1 2 2 5 2 20 2 30 2 59 2 2721 3 33 3 113 3 135 3 142 3 190 3 450 3 773 3 796 3 2252 4 6 6 10 6 50 6 60 6 66 6 74 6 85 6 329 6 603 7 15 7 715 8 16 8 40 8 52 8 86 8 164 8 322 8 460 8 559 8 589 8 1296 8 2440 8 2650 8 3207 8 3770 9 11 9 22 9 24 9 65 9 76 9 228 12 19 13 947 14 58 14 257 17 27...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 510318082834167951
Test #38:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
5 914858813253258744
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 2 5 2 6 4 7 3 8 4 9 4 10 2 11 5 12 6 13 10 14 5 15 7 16 8 17 12 18 9 19 4 20 11 21 15 22 9 23 20 24 20 25 12 26 21 27 17 28 10 29 7 30 16 31 13 32 1 33 18...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 2 5 2 6 4 7 3 8 4 9 4 10 2 11 5 12 6 13 10 14 5 15 7 16 8 17 12 18 9 19 4 20 11 21 15 22 9 23 20 24 20 25 12 26 21 27 17 28 10 29 7 30 16 31 13 32 1 33 18...
output:
6 4098 2049 1 2 2 5 2 10 2 397 3 7 3 113 3 142 3 304 3 385 3 773 3 1091 3 2252 3 2767 4 19 6 12 6 50 6 74 6 85 6 925 6 1673 8 16 8 40 8 164 8 3207 9 18 9 22 9 76 11 20 11 47 11 77 11 175 11 723 11 1333 11 2250 13 31 13 43 13 44 13 213 13 699 14 122 14 1608 14 3694 15 21 15 42 15 46 15 384 15 1769 17...
input:
6 4098 2049 1 2 2 5 2 10 2 397 3 7 3 113 3 142 3 304 3 385 3 773 3 1091 3 2252 3 2767 4 19 6 12 6 50 6 74 6 85 6 925 6 1673 8 16 8 40 8 164 8 3207 9 18 9 22 9 76 11 20 11 47 11 77 11 175 11 723 11 1333 11 2250 13 31 13 43 13 44 13 213 13 699 14 122 14 1608 14 3694 15 21 15 42 15 46 15 384 15 1769 17...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 914858813253258744
Test #39:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1856kb
input:
5 659635316746638238
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 3 6 4 7 3 8 4 9 4 10 6 11 9 12 6 13 5 14 11 15 7 16 8 17 12 18 1 19 4 20 11 21 6 22 9 23 10 24 9 25 12 26 21 27 17 28 10 29 20 30 16 31 13 32 1 33 3 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4098 2 1 3 1 4 1 5 3 6 4 7 3 8 4 9 4 10 6 11 9 12 6 13 5 14 11 15 7 16 8 17 12 18 1 19 4 20 11 21 6 22 9 23 10 24 9 25 12 26 21 27 17 28 10 29 20 30 16 31 13 32 1 33 3 3...
output:
6 4098 2051 1 2 1 3 1 18 1 32 1 49 1 1214 4 9 5 13 5 34 5 38 5 267 5 1824 5 2436 6 10 6 12 6 21 6 205 6 603 6 1673 6 2826 6 3717 7 15 7 715 8 16 8 52 8 164 8 322 8 398 8 559 8 1597 8 1847 8 3207 9 22 9 24 9 76 9 228 11 20 14 58 14 122 14 214 14 257 14 1608 14 3965 17 27 17 130 19 2061 19 2595 19 327...
input:
6 4098 2051 1 2 1 3 1 18 1 32 1 49 1 1214 4 9 5 13 5 34 5 38 5 267 5 1824 5 2436 6 10 6 12 6 21 6 205 6 603 6 1673 6 2826 6 3717 7 15 7 715 8 16 8 52 8 164 8 322 8 398 8 559 8 1597 8 1847 8 3207 9 22 9 24 9 76 9 228 11 20 14 58 14 122 14 214 14 257 14 1608 14 3965 17 27 17 130 19 2061 19 2595 19 327...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 659635316746638238
Test #40:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1900kb,1848kb
input:
7 858490260563149759
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 3 6 2 7 5 8 4 9 1 10 6 11 5 12 11 13 10 14 5 15 13 16 8 17 12 18 1 19 4 20 11 21 6 22 19 23 20 24 20 25 23 26 21 27 17 28 23 29 7 30 16 31 27 32 16 33...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 3 6 2 7 5 8 4 9 1 10 6 11 5 12 11 13 10 14 5 15 13 16 8 17 12 18 1 19 4 20 11 21 6 22 19 23 20 24 20 25 23 26 21 27 17 28 23 29 7 30 16 31 27 32 16 33...
output:
8 4098 2049 7 29 14 3965 17 78 18 112 18 1286 22 90 24 953 28 1569 37 177 44 3856 46 76 46 80 50 86 51 762 52 540 54 3872 55 1384 60 1266 60 1585 61 667 65 246 67 2369 67 2888 71 2324 74 2641 78 1779 79 2949 81 130 81 3363 82 2936 83 103 87 1099 88 457 89 370 90 584 92 3330 95 3219 96 2016 99 3250 1...
input:
8 4098 2049 7 29 14 3965 17 78 18 112 18 1286 22 90 24 953 28 1569 37 177 44 3856 46 76 46 80 50 86 51 762 52 540 54 3872 55 1384 60 1266 60 1585 61 667 65 246 67 2369 67 2888 71 2324 74 2641 78 1779 79 2949 81 130 81 3363 82 2936 83 103 87 1099 88 457 89 370 90 584 92 3330 95 3219 96 2016 99 3250 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 858490260563149759
Test #41:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1848kb
input:
7 860058643727731209
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 3 6 4 7 5 8 4 9 4 10 6 11 9 12 6 13 10 14 11 15 7 16 8 17 5 18 1 19 4 20 11 21 6 22 19 23 10 24 20 25 23 26 21 27 17 28 23 29 20 30 2 31 27 32 1 33 3 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 3 6 4 7 5 8 4 9 4 10 6 11 9 12 6 13 10 14 11 15 7 16 8 17 5 18 1 19 4 20 11 21 6 22 19 23 10 24 20 25 23 26 21 27 17 28 23 29 20 30 2 31 27 32 1 33 3 ...
output:
8 4098 2049 2 2721 7 715 14 214 16 2058 25 2314 30 1496 44 3856 46 80 60 1266 61 147 61 667 63 2887 63 3497 68 918 72 1661 74 2641 78 1132 78 3419 78 3895 80 2264 81 3363 85 230 88 3924 92 444 94 2293 98 2372 102 1814 102 3003 103 2308 105 1774 105 2962 105 4009 107 1548 107 3370 107 3626 108 1455 1...
input:
8 4098 2049 2 2721 7 715 14 214 16 2058 25 2314 30 1496 44 3856 46 80 60 1266 61 147 61 667 63 2887 63 3497 68 918 72 1661 74 2641 78 1132 78 3419 78 3895 80 2264 81 3363 85 230 88 3924 92 444 94 2293 98 2372 102 1814 102 3003 103 2308 105 1774 105 2962 105 4009 107 1548 107 3370 107 3626 108 1455 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 860058643727731209
Test #42:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1900kb,1848kb
input:
7 718861404514377808
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 2 6 2 7 5 8 4 9 1 10 6 11 9 12 6 13 5 14 11 15 7 16 1 17 12 18 1 19 12 20 11 21 6 22 19 23 10 24 20 25 23 26 9 27 5 28 23 29 7 30 16 31 27 32 1 33 3 3...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 2 6 2 7 5 8 4 9 1 10 6 11 9 12 6 13 5 14 11 15 7 16 1 17 12 18 1 19 12 20 11 21 6 22 19 23 10 24 20 25 23 26 9 27 5 28 23 29 7 30 16 31 27 32 1 33 3 3...
output:
8 4098 2049 16 2421 17 1946 20 3000 25 2314 28 3301 36 1314 37 177 44 3856 46 80 46 530 46 3769 50 3539 51 3766 52 540 54 700 56 522 60 1266 60 2232 62 1366 62 2079 62 2584 63 2887 63 3497 66 1030 66 2423 70 853 72 1661 78 1779 78 3895 79 2949 87 1099 87 2822 87 3678 88 3924 90 584 91 3462 92 3330 9...
input:
8 4098 2049 16 2421 17 1946 20 3000 25 2314 28 3301 36 1314 37 177 44 3856 46 80 46 530 46 3769 50 3539 51 3766 52 540 54 700 56 522 60 1266 60 2232 62 1366 62 2079 62 2584 63 2887 63 3497 66 1030 66 2423 70 853 72 1661 78 1779 78 3895 79 2949 87 1099 87 2822 87 3678 88 3924 90 584 91 3462 92 3330 9...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 718861404514377808
Test #43:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1896kb,1856kb
input:
7 659192688464047828
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 3 6 4 7 5 8 1 9 1 10 6 11 5 12 11 13 5 14 5 15 13 16 1 17 5 18 9 19 12 20 11 21 6 22 9 23 10 24 9 25 23 26 9 27 5 28 10 29 20 30 16 31 27 32 16 33 18 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 3 6 4 7 5 8 1 9 1 10 6 11 5 12 11 13 5 14 5 15 13 16 1 17 5 18 9 19 12 20 11 21 6 22 9 23 10 24 9 25 23 26 9 27 5 28 10 29 20 30 16 31 27 32 16 33 18 ...
output:
8 4098 2049 2 2721 17 1946 19 3271 22 90 24 362 28 3301 42 415 42 2468 44 3856 46 3769 48 1174 48 1530 50 3539 54 3872 56 1757 60 1266 60 2232 66 2133 67 1085 67 2888 68 1357 71 2324 71 2675 72 211 77 2376 78 1779 78 3419 79 1800 79 2949 80 2264 83 103 84 3402 85 230 86 639 86 1776 86 2306 88 1153 8...
input:
8 4098 2049 2 2721 17 1946 19 3271 22 90 24 362 28 3301 42 415 42 2468 44 3856 46 3769 48 1174 48 1530 50 3539 54 3872 56 1757 60 1266 60 2232 66 2133 67 1085 67 2888 68 1357 71 2324 71 2675 72 211 77 2376 78 1779 78 3419 79 1800 79 2949 80 2264 83 103 84 3402 85 230 86 639 86 1776 86 2306 88 1153 8...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 659192688464047828
Test #44:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1900kb,1856kb
input:
7 685730986714800201
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 3 6 2 7 5 8 4 9 1 10 6 11 9 12 6 13 5 14 11 15 7 16 1 17 12 18 1 19 12 20 11 21 6 22 9 23 10 24 20 25 12 26 9 27 5 28 10 29 20 30 2 31 27 32 1 33 3 34...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4098 2 1 3 1 4 1 5 3 6 2 7 5 8 4 9 1 10 6 11 9 12 6 13 5 14 11 15 7 16 1 17 12 18 1 19 12 20 11 21 6 22 9 23 10 24 20 25 12 26 9 27 5 28 10 29 20 30 2 31 27 32 1 33 3 34...
output:
8 4098 2049 7 715 14 3965 16 1282 16 2421 21 2920 28 3301 44 3856 46 3769 51 902 51 3766 56 522 60 1266 60 2232 62 2079 63 3497 64 2752 66 150 66 2423 72 1552 75 1675 77 2376 78 1132 78 1779 79 2949 86 639 87 2822 87 3424 90 1877 91 2905 93 2610 98 1870 102 908 103 2308 106 1338 106 1908 107 320 107...
input:
8 4098 2049 7 715 14 3965 16 1282 16 2421 21 2920 28 3301 44 3856 46 3769 51 902 51 3766 56 522 60 1266 60 2232 62 2079 63 3497 64 2752 66 150 66 2423 72 1552 75 1675 77 2376 78 1132 78 1779 79 2949 86 639 87 2822 87 3424 90 1877 91 2905 93 2610 98 1870 102 908 103 2308 106 1338 106 1908 107 320 107...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 685730986714800201