QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#666054 | #8726. Magic Show | huazai676 | 35 | 1ms | 1920kb | C++17 | 2.0kb | 2024-10-22 16:26:13 | 2024-10-22 16:26:22 |
Judging History
Alice
#include<iostream>
#include<cstring>
#include<algorithm>
#include<vector>
#include<random>
#include "Alice.h"
using namespace std;
namespace
{
const int N=63,M=75;
typedef long long ll;
mt19937 rd(172328);
int a[N*M+10];
int fa[N*M+10][2];
int rand(int l,int r)
{
return rd()%(r-l+1)+l;
}
}
vector<pair<int,int> > Alice()
{
vector<pair<int,int> > res;
ll x=setN(N*M+2);
int n=N*M+2;
for(int i=1;i<=n;i++) a[i]=i;
shuffle(a+1,a+n+1,rd);
for(int i=0;i<N;i++)
{
for(int j=1;j<=M;j++)
{
int u=i*M+j;
fa[u][0]=rand(u+1,n-1);
fa[u][1]=rand(fa[u][0]+1,n);
if(x>>i&1)
res.push_back({a[u],a[fa[u][1]]});
else
res.push_back({a[u],a[fa[u][0]]});
}
}
res.push_back({a[N*M+1],a[N*M+2]});
shuffle(res.begin(),res.end(),rd);
return res;
}
Bob
#include<iostream>
#include<cstring>
#include<algorithm>
#include<vector>
#include<random>
#include "Bob.h"
using namespace std;
namespace
{
const int N=63,M=75;
typedef long long ll;
int fa[N*M+10][2];
int f[N*M+10];
mt19937 rd(172328);
int a[N*M+10],b[N*M+10];
int rand(int l,int r)
{
return rd()%(r-l+1)+l;
}
}
ll Bob(vector<pair<int,int> > V)
{
int n=N*M+2;
for(int i=1;i<=n;i++) a[i]=i;
shuffle(a+1,a+n+1,rd);
for(int i=1;i<=n;i++) b[a[i]]=i;
for(int i=0;i<N;i++)
{
for(int j=1;j<=M;j++)
{
int u=i*M+j;
fa[u][0]=rand(u+1,n-1);
fa[u][1]=rand(fa[u][0]+1,n);
}
}
for(auto[u,v]:V)
{
if(b[v]==fa[b[u]][1]) f[b[u]]=1;
}
ll res=0;
for(int i=0;i<N;i++)
{
ll g=0;
for(int j=1;j<=M;j++)
{
int u=i*M+j;
g|=f[u];
}
res|=g<<i;
}
return res;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1908kb
input:
1 4005
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1411 4292 71 1820 3177 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1411 4292 71 1820 3177 364 1520 3572 102 1128 2675 99...
output:
2 4727 3683 1 2882 2 1277 3 663 3 4126 3 4353 4 3699 5 1155 6 378 7 769 8 433 9 1958 9 3569 10 2728 11 62 11 1795 12 1163 12 1888 13 175 13 419 13 3500 14 979 14 1444 15 2558 15 4465 16 2959 17 1968 18 422 18 2798 19 2079 20 994 21 2627 22 27 22 1618 23 2655 25 736 27 1825 28 349 28 1057 28 3053 29 ...
input:
2 4727 3683 1 2882 2 1277 3 663 3 4126 3 4353 4 3699 5 1155 6 378 7 769 8 433 9 1958 9 3569 10 2728 11 62 11 1795 12 1163 12 1888 13 175 13 419 13 3500 14 979 14 1444 15 2558 15 4465 16 2959 17 1968 18 422 18 2798 19 2079 20 994 21 2627 22 27 22 1618 23 2655 25 736 27 1825 28 349 28 1057 28 3053 29 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 4005
Test #2:
score: 5
Accepted
time: 1ms = 1ms + 0ms
memory: 1888kb,1912kb
input:
1 459
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
output:
2 4727 3683 1 2882 2 1277 3 663 3 4353 4 3699 5 1155 6 378 7 769 7 3161 8 433 9 2803 9 3569 9 4340 10 2728 11 62 11 1795 12 1888 13 175 13 419 13 3500 14 979 14 1444 15 2558 15 4465 16 2959 17 1968 18 422 18 2218 18 2798 19 2008 20 994 21 2627 22 27 22 1618 23 2655 25 736 27 1825 28 349 28 1057 28 3...
input:
2 4727 3683 1 2882 2 1277 3 663 3 4353 4 3699 5 1155 6 378 7 769 7 3161 8 433 9 2803 9 3569 9 4340 10 2728 11 62 11 1795 12 1888 13 175 13 419 13 3500 14 979 14 1444 15 2558 15 4465 16 2959 17 1968 18 422 18 2218 18 2798 19 2008 20 994 21 2627 22 27 22 1618 23 2655 25 736 27 1825 28 349 28 1057 28 3...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 459
Test #3:
score: 5
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1908kb
input:
1 2495
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1411 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1411 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
output:
2 4727 3683 1 2882 2 1277 3 663 3 4353 4 3699 5 1155 6 378 7 769 7 3104 7 3161 8 433 9 3569 10 3061 11 62 11 1795 12 1888 13 175 13 419 13 3500 14 979 14 1444 15 2558 15 4465 16 2959 17 1968 18 422 18 2218 18 2798 19 2079 20 994 21 2627 22 27 22 1618 23 2655 25 736 27 1825 28 349 28 1057 28 3053 29 ...
input:
2 4727 3683 1 2882 2 1277 3 663 3 4353 4 3699 5 1155 6 378 7 769 7 3104 7 3161 8 433 9 3569 10 3061 11 62 11 1795 12 1888 13 175 13 419 13 3500 14 979 14 1444 15 2558 15 4465 16 2959 17 1968 18 422 18 2218 18 2798 19 2079 20 994 21 2627 22 27 22 1618 23 2655 25 736 27 1825 28 349 28 1057 28 3053 29 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 2495
Test #4:
score: 5
Accepted
time: 1ms = 1ms + 0ms
memory: 1888kb,1892kb
input:
3 1560
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3177 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3177 364 1520 3572 102 1128 2675 99...
output:
4 4727 2364 2 1277 2 1584 3 663 3 4126 3 4353 5 1155 7 769 7 3104 8 433 10 3061 11 62 11 1795 11 3794 12 1163 14 979 14 1444 15 2558 15 4465 16 2959 18 2798 19 2008 20 994 21 2627 22 27 23 1118 24 1451 25 2422 27 1825 28 1057 28 3053 29 2302 30 3114 39 4432 40 686 43 353 46 2263 48 4605 50 2174 52 1...
input:
4 4727 2364 2 1277 2 1584 3 663 3 4126 3 4353 5 1155 7 769 7 3104 8 433 10 3061 11 62 11 1795 11 3794 12 1163 14 979 14 1444 15 2558 15 4465 16 2959 18 2798 19 2008 20 994 21 2627 22 27 23 1118 24 1451 25 2422 27 1825 28 1057 28 3053 29 2302 30 3114 39 4432 40 686 43 353 46 2263 48 4605 50 2174 52 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 1560
Test #5:
score: 5
Accepted
time: 1ms = 1ms + 0ms
memory: 1888kb,1888kb
input:
3 3594
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1411 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1411 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
output:
4 4727 2364 2 1277 2 1584 3 663 3 4353 4 3699 5 1155 7 769 7 3161 8 433 9 2803 10 2728 11 62 11 1795 11 3794 12 1163 14 979 14 1444 15 2558 15 4465 16 2959 18 2798 19 2008 20 994 21 2627 22 27 23 1118 24 1451 25 2422 27 1825 28 1057 28 3053 29 2302 38 1041 39 4432 40 686 43 353 46 142 48 4605 50 217...
input:
4 4727 2364 2 1277 2 1584 3 663 3 4353 4 3699 5 1155 7 769 7 3161 8 433 9 2803 10 2728 11 62 11 1795 11 3794 12 1163 14 979 14 1444 15 2558 15 4465 16 2959 18 2798 19 2008 20 994 21 2627 22 27 23 1118 24 1451 25 2422 27 1825 28 1057 28 3053 29 2302 38 1041 39 4432 40 686 43 353 46 142 48 4605 50 217...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 3594
Test #6:
score: 5
Accepted
time: 1ms = 1ms + 0ms
memory: 1896kb,1892kb
input:
3 1750
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
output:
4 4727 2364 2 1277 2 1584 3 663 3 4353 5 1155 8 433 9 3569 9 4340 11 62 11 1795 12 1163 14 979 14 1444 15 4465 16 2959 18 2798 19 2079 20 994 21 2627 22 27 23 1118 25 736 27 1825 28 1057 28 3053 29 2302 39 4432 43 353 46 142 48 4605 50 2174 52 1084 54 3845 55 1201 56 4607 57 626 59 371 61 2076 63 74...
input:
4 4727 2364 2 1277 2 1584 3 663 3 4353 5 1155 8 433 9 3569 9 4340 11 62 11 1795 12 1163 14 979 14 1444 15 4465 16 2959 18 2798 19 2079 20 994 21 2627 22 27 23 1118 25 736 27 1825 28 1057 28 3053 29 2302 39 4432 43 353 46 142 48 4605 50 2174 52 1084 54 3845 55 1201 56 4607 57 626 59 371 61 2076 63 74...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 1750
Test #7:
score: 5
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1892kb
input:
5 4878
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
output:
6 4727 2414 2 1584 3 663 5 1155 6 378 7 769 7 3161 9 3569 10 2728 11 62 11 1795 12 1888 13 175 13 419 13 1248 13 3500 13 3904 14 979 14 1444 15 4465 18 422 19 2079 20 994 21 2627 22 27 24 1451 26 3878 28 1057 28 3053 29 2302 30 3114 31 695 33 1558 35 3591 36 3591 37 584 37 1052 37 1247 37 1273 37 18...
input:
6 4727 2414 2 1584 3 663 5 1155 6 378 7 769 7 3161 9 3569 10 2728 11 62 11 1795 12 1888 13 175 13 419 13 1248 13 3500 13 3904 14 979 14 1444 15 4465 18 422 19 2079 20 994 21 2627 22 27 24 1451 26 3878 28 1057 28 3053 29 2302 30 3114 31 695 33 1558 35 3591 36 3591 37 584 37 1052 37 1247 37 1273 37 18...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 4878
Test #8:
score: 5
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1892kb
input:
5 1223
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
output:
6 4727 2394 2 1584 3 663 5 1155 6 378 7 769 7 3161 9 3569 10 2728 11 62 11 1795 12 1888 13 175 13 419 13 1248 13 3500 13 3904 14 979 14 1444 15 4465 18 422 19 2079 20 994 21 2627 22 27 26 3878 28 1057 28 3053 29 2302 30 3114 31 695 32 253 33 1558 35 4151 36 3591 37 426 37 584 37 1052 37 1247 37 1273...
input:
6 4727 2394 2 1584 3 663 5 1155 6 378 7 769 7 3161 9 3569 10 2728 11 62 11 1795 12 1888 13 175 13 419 13 1248 13 3500 13 3904 14 979 14 1444 15 4465 18 422 19 2079 20 994 21 2627 22 27 26 3878 28 1057 28 3053 29 2302 30 3114 31 695 32 253 33 1558 35 4151 36 3591 37 426 37 584 37 1052 37 1247 37 1273...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 1223
Test #9:
score: 5
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1892kb
input:
5 648
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3177 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3177 364 1520 3572 102 1128 2675 99...
output:
6 4727 2400 2 1584 3 663 5 1155 6 378 7 769 9 3569 10 2728 11 62 11 1795 12 1888 13 175 13 419 13 1248 13 3500 13 3904 14 979 14 1444 15 4465 18 422 19 2008 20 994 21 2627 22 27 24 1451 26 3878 28 1057 28 3053 29 2302 30 3114 33 1413 36 3591 37 584 37 1052 37 1247 37 1273 37 1835 38 1041 39 4432 41 ...
input:
6 4727 2400 2 1584 3 663 5 1155 6 378 7 769 9 3569 10 2728 11 62 11 1795 12 1888 13 175 13 419 13 1248 13 3500 13 3904 14 979 14 1444 15 4465 18 422 19 2008 20 994 21 2627 22 27 24 1451 26 3878 28 1057 28 3053 29 2302 30 3114 33 1413 36 3591 37 584 37 1052 37 1247 37 1273 37 1835 38 1041 39 4432 41 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 648
Test #10:
score: 5
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1892kb
input:
7 4475
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
output:
8 4727 2364 2 1277 2 1584 3 663 4 3699 5 1155 6 378 7 769 7 3104 7 3161 8 433 9 2803 9 4340 10 3061 11 62 11 1795 14 979 14 1444 15 2558 15 4465 16 2959 18 2218 18 2798 19 2008 20 994 21 2627 23 2655 24 1451 25 2422 26 3878 28 1057 28 3053 29 2302 30 3114 31 2424 32 1876 33 1558 34 1495 35 4151 38 1...
input:
8 4727 2364 2 1277 2 1584 3 663 4 3699 5 1155 6 378 7 769 7 3104 7 3161 8 433 9 2803 9 4340 10 3061 11 62 11 1795 14 979 14 1444 15 2558 15 4465 16 2959 18 2218 18 2798 19 2008 20 994 21 2627 23 2655 24 1451 25 2422 26 3878 28 1057 28 3053 29 2302 30 3114 31 2424 32 1876 33 1558 34 1495 35 4151 38 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 4475
Test #11:
score: 5
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1892kb
input:
7 4240
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3177 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3177 364 1520 3572 102 1128 2675 99...
output:
8 4727 2364 2 1277 2 1584 3 4126 3 4353 5 1155 6 378 7 769 7 3104 8 433 9 1958 9 2803 9 4340 10 3061 11 62 11 1795 14 979 14 1444 15 4465 16 2959 17 1968 18 2218 18 2798 19 2008 20 994 21 2627 23 1118 24 2779 25 736 27 1825 28 1057 28 3053 29 2302 30 3114 31 2424 32 1876 33 1413 34 1495 35 4151 38 1...
input:
8 4727 2364 2 1277 2 1584 3 4126 3 4353 5 1155 6 378 7 769 7 3104 8 433 9 1958 9 2803 9 4340 10 3061 11 62 11 1795 14 979 14 1444 15 4465 16 2959 17 1968 18 2218 18 2798 19 2008 20 994 21 2627 23 1118 24 2779 25 736 27 1825 28 1057 28 3053 29 2302 30 3114 31 2424 32 1876 33 1413 34 1495 35 4151 38 1...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 4240
Test #12:
score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1888kb
input:
7 1291
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
output:
8 4727 2364 2 1277 2 1584 3 663 5 1155 6 378 7 769 7 3161 8 433 9 2803 9 4340 10 2728 11 62 11 1795 12 1163 14 979 14 1444 15 2558 15 4465 16 2959 18 2218 18 2798 19 2008 20 994 21 2627 23 2655 24 1451 25 2422 27 1825 28 1057 28 3053 29 2302 30 3114 31 2424 32 253 33 1558 34 1495 35 4151 38 1041 39 ...
input:
8 4727 2364 2 1277 2 1584 3 663 5 1155 6 378 7 769 7 3161 8 433 9 2803 9 4340 10 2728 11 62 11 1795 12 1163 14 979 14 1444 15 2558 15 4465 16 2959 18 2218 18 2798 19 2008 20 994 21 2627 23 2655 24 1451 25 2422 27 1825 28 1057 28 3053 29 2302 30 3114 31 2424 32 253 33 1558 34 1495 35 4151 38 1041 39 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 1291
Subtask #2:
score: 30
Accepted
Test #13:
score: 30
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1912kb
input:
1 17476204
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 2131 581 203 557 4017 3715 3484 1116 2050 2595 2327 4369 4328 4277 3547 2949 3788 3448 3469 371 1411 4292 71 1820 3177 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 2131 581 203 557 4017 3715 3484 1116 2050 2595 2327 4369 4328 4277 3547 2949 3788 3448 3469 371 1411 4292 71 1820 3177 364 1520 3572 102 1128 2675 99...
output:
2 4727 3683 1 2882 3 663 3 4126 3 4353 4 3673 5 1155 6 378 7 769 8 2965 9 1958 9 3569 10 2728 11 1795 12 1888 13 175 13 419 13 3500 14 1444 15 1098 15 2558 15 4465 16 2959 17 1968 18 422 19 2079 20 994 21 1779 21 2627 22 27 22 1618 23 1118 25 2422 28 349 28 1057 28 3053 29 1257 30 3114 32 1876 33 14...
input:
2 4727 3683 1 2882 3 663 3 4126 3 4353 4 3673 5 1155 6 378 7 769 8 2965 9 1958 9 3569 10 2728 11 1795 12 1888 13 175 13 419 13 3500 14 1444 15 1098 15 2558 15 4465 16 2959 17 1968 18 422 19 2079 20 994 21 1779 21 2627 22 27 22 1618 23 1118 25 2422 28 349 28 1057 28 3053 29 1257 30 3114 32 1876 33 14...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 17476204
Test #14:
score: 30
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1916kb
input:
1 11926600
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 2327 4369 4328 4277 3547 2949 2337 3448 3469 371 1411 4292 14 1820 3177 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 2327 4369 4328 4277 3547 2949 2337 3448 3469 371 1411 4292 14 1820 3177 364 1520 3572 102 1128 2675 99...
output:
2 4727 3683 1 3876 2 1277 3 663 3 4126 3 4353 4 3699 5 4326 6 378 7 769 8 433 9 1958 9 2803 9 3569 10 2728 11 62 12 1163 12 1888 13 175 13 251 13 3500 14 4292 15 2558 15 4465 16 2959 17 1968 18 422 18 2218 19 2008 20 327 21 2627 22 27 22 1618 23 1118 25 2422 27 1825 28 349 28 1057 28 3053 29 2302 30...
input:
2 4727 3683 1 3876 2 1277 3 663 3 4126 3 4353 4 3699 5 4326 6 378 7 769 8 433 9 1958 9 2803 9 3569 10 2728 11 62 12 1163 12 1888 13 175 13 251 13 3500 14 4292 15 2558 15 4465 16 2959 17 1968 18 422 18 2218 19 2008 20 327 21 2627 22 27 22 1618 23 1118 25 2422 27 1825 28 349 28 1057 28 3053 29 2302 30...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 11926600
Test #15:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1916kb
input:
1 16602378
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 3788 3448 3469 371 1606 4292 14 1820 3532 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 3788 3448 3469 371 1606 4292 14 1820 3532 364 1520 3572 102 1128 2675 99...
output:
2 4727 3683 1 3876 2 1277 3 663 3 4353 4 3699 5 4326 6 378 7 769 7 3161 8 433 9 2803 9 3569 9 4340 10 2728 12 1163 12 1888 13 175 13 251 13 3500 14 979 14 4292 15 2558 15 4465 16 2959 17 1968 18 422 18 2218 18 2798 18 4160 19 2008 20 327 21 2627 22 27 22 1618 23 2655 25 2422 27 1825 28 349 28 1057 2...
input:
2 4727 3683 1 3876 2 1277 3 663 3 4353 4 3699 5 4326 6 378 7 769 7 3161 8 433 9 2803 9 3569 9 4340 10 2728 12 1163 12 1888 13 175 13 251 13 3500 14 979 14 4292 15 2558 15 4465 16 2959 17 1968 18 422 18 2218 18 2798 18 4160 19 2008 20 327 21 2627 22 27 22 1618 23 2655 25 2422 27 1825 28 349 28 1057 2...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 16602378
Test #16:
score: 30
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1896kb
input:
3 13129243
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 3788 3448 3469 371 1606 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 3788 3448 3469 371 1606 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
output:
4 4727 2364 2 1277 2 1584 3 663 3 4353 8 433 9 2803 9 3569 9 4340 10 3061 11 1795 11 3794 12 1163 14 979 14 1444 15 2558 15 4465 16 2959 18 2798 18 4160 19 2008 21 2627 22 27 23 1118 24 1451 25 2422 27 1825 28 1057 29 2302 30 3114 34 1495 39 4432 40 686 46 142 48 4605 50 851 52 3757 54 782 55 1201 5...
input:
4 4727 2364 2 1277 2 1584 3 663 3 4353 8 433 9 2803 9 3569 9 4340 10 3061 11 1795 11 3794 12 1163 14 979 14 1444 15 2558 15 4465 16 2959 18 2798 18 4160 19 2008 21 2627 22 27 23 1118 24 1451 25 2422 27 1825 28 1057 29 2302 30 3114 34 1495 39 4432 40 686 46 142 48 4605 50 851 52 3757 54 782 55 1201 5...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 13129243
Test #17:
score: 30
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1896kb
input:
3 7892141
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 2327 4369 4328 4277 3547 2949 3788 3448 3469 371 1411 4292 14 1820 3177 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 2327 4369 4328 4277 3547 2949 3788 3448 3469 371 1411 4292 14 1820 3177 364 1520 3572 102 1128 2675 99...
output:
4 4727 2364 2 1277 2 1584 3 663 3 4126 3 4353 4 3699 7 769 8 433 9 1958 9 3569 10 2728 11 3794 12 1163 16 2959 19 2079 21 2627 22 27 23 1118 24 1451 25 736 27 1825 28 1057 29 2302 30 3114 35 4151 39 4432 48 4605 49 915 50 81 50 851 50 2174 52 3757 54 782 55 1201 57 626 58 3320 58 3797 59 3864 62 127...
input:
4 4727 2364 2 1277 2 1584 3 663 3 4126 3 4353 4 3699 7 769 8 433 9 1958 9 3569 10 2728 11 3794 12 1163 16 2959 19 2079 21 2627 22 27 23 1118 24 1451 25 736 27 1825 28 1057 29 2302 30 3114 35 4151 39 4432 48 4605 49 915 50 81 50 851 50 2174 52 3757 54 782 55 1201 57 626 58 3320 58 3797 59 3864 62 127...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 7892141
Test #18:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1888kb,1892kb
input:
3 21314775
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4727 3620 4686 1284 2131 581 203 557 4017 3715 3484 1116 2050 2595 2327 4369 4328 4277 3547 2949 2337 3448 3469 371 1411 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4727 3620 4686 1284 2131 581 203 557 4017 3715 3484 1116 2050 2595 2327 4369 4328 4277 3547 2949 2337 3448 3469 371 1411 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
output:
4 4727 2364 2 1277 2 1584 3 663 3 4353 5 1155 8 2965 9 3569 10 3061 11 62 11 1795 12 1163 14 979 15 2558 15 4465 16 2959 19 2079 21 1779 21 2627 22 27 23 1118 24 2779 25 736 27 1825 28 1057 29 1257 30 3114 34 496 35 4151 39 2591 39 4432 40 4492 43 353 46 142 48 4605 52 1084 54 3845 55 1201 57 626 59...
input:
4 4727 2364 2 1277 2 1584 3 663 3 4353 5 1155 8 2965 9 3569 10 3061 11 62 11 1795 12 1163 14 979 15 2558 15 4465 16 2959 19 2079 21 1779 21 2627 22 27 23 1118 24 2779 25 736 27 1825 28 1057 29 1257 30 3114 34 496 35 4151 39 2591 39 4432 40 4492 43 353 46 142 48 4605 52 1084 54 3845 55 1201 57 626 59...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 21314775
Test #19:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1892kb
input:
5 5559540
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3177 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3177 364 1520 3572 102 1128 2675 99...
output:
6 4727 2400 1 3876 2 1584 3 663 6 378 7 769 7 3104 9 3569 10 3061 11 62 12 1888 13 175 13 419 13 1248 13 3500 13 3904 15 4465 18 422 19 2079 20 994 21 2627 22 27 23 1118 26 3878 28 1057 29 2302 30 3114 31 695 32 253 33 1413 35 3591 36 3591 37 352 37 426 37 584 37 1052 37 1247 37 1273 37 1835 37 2639...
input:
6 4727 2400 1 3876 2 1584 3 663 6 378 7 769 7 3104 9 3569 10 3061 11 62 12 1888 13 175 13 419 13 1248 13 3500 13 3904 15 4465 18 422 19 2079 20 994 21 2627 22 27 23 1118 26 3878 28 1057 29 2302 30 3114 31 695 32 253 33 1413 35 3591 36 3591 37 352 37 426 37 584 37 1052 37 1247 37 1273 37 1835 37 2639...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 5559540
Test #20:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1892kb
input:
5 9424319
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 3788 3448 3469 371 1411 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 3788 3448 3469 371 1411 4292 71 1820 3532 364 1520 3572 102 1128 2675 99...
output:
6 4727 2402 1 3876 2 1584 3 663 6 378 7 769 7 3104 7 3161 9 3569 10 3061 11 1795 12 1888 13 175 13 1248 13 3500 13 3904 15 4465 18 422 19 2079 20 327 21 2627 22 27 24 1451 26 3878 28 1057 28 3053 29 2302 30 3114 31 695 32 253 33 1558 34 496 35 4151 36 3591 37 352 37 426 37 584 37 1052 37 1154 37 124...
input:
6 4727 2402 1 3876 2 1584 3 663 6 378 7 769 7 3104 7 3161 9 3569 10 3061 11 1795 12 1888 13 175 13 1248 13 3500 13 3904 15 4465 18 422 19 2079 20 327 21 2627 22 27 24 1451 26 3878 28 1057 28 3053 29 2302 30 3114 31 695 32 253 33 1558 34 496 35 4151 36 3591 37 352 37 426 37 584 37 1052 37 1154 37 124...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 9424319
Test #21:
score: 30
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1896kb
input:
5 10955780
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 2327 4369 4328 4277 3547 2949 2337 3448 3469 371 1411 4292 14 1820 3177 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 5 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 2327 4369 4328 4277 3547 2949 2337 3448 3469 371 1411 4292 14 1820 3177 364 1520 3572 102 1128 2675 99...
output:
6 4727 2412 1 3876 2 1584 3 663 5 1155 6 378 7 769 9 3569 10 2728 11 62 11 1795 12 1888 13 175 13 251 13 1248 13 3500 13 3904 14 979 14 4292 15 4465 18 422 19 2079 20 327 21 2627 22 27 26 3878 28 1057 28 3053 29 2302 30 3114 31 695 32 253 33 1413 34 496 35 4151 36 3591 37 233 37 426 37 584 37 1052 3...
input:
6 4727 2412 1 3876 2 1584 3 663 5 1155 6 378 7 769 9 3569 10 2728 11 62 11 1795 12 1888 13 175 13 251 13 1248 13 3500 13 3904 14 979 14 4292 15 4465 18 422 19 2079 20 327 21 2627 22 27 26 3878 28 1057 28 3053 29 2302 30 3114 31 695 32 253 33 1413 34 496 35 4151 36 3591 37 233 37 426 37 584 37 1052 3...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 10955780
Test #22:
score: 30
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1896kb
input:
7 19938721
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4727 3620 4686 1284 2131 581 203 557 4017 3715 3484 1116 2050 2595 2327 4369 4328 4277 3547 2949 2337 3448 3469 371 1411 4292 14 1820 3177 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4727 3620 4686 1284 2131 581 203 557 4017 3715 3484 1116 2050 2595 2327 4369 4328 4277 3547 2949 2337 3448 3469 371 1411 4292 14 1820 3177 364 1520 3572 102 1128 2675 99...
output:
8 4727 2364 2 1277 2 1584 3 4126 3 4353 5 1155 6 378 8 2965 9 1958 9 2803 9 3569 10 2728 11 62 12 1163 14 979 14 1444 16 2959 17 1968 18 2218 18 2798 19 2008 20 994 21 1779 23 2655 25 736 26 3878 28 1057 28 3053 29 1257 30 3114 31 2424 32 253 33 1413 34 1495 35 4151 38 1041 39 4432 40 4492 42 1640 4...
input:
8 4727 2364 2 1277 2 1584 3 4126 3 4353 5 1155 6 378 8 2965 9 1958 9 2803 9 3569 10 2728 11 62 12 1163 14 979 14 1444 16 2959 17 1968 18 2218 18 2798 19 2008 20 994 21 1779 23 2655 25 736 26 3878 28 1057 28 3053 29 1257 30 3114 31 2424 32 253 33 1413 34 1495 35 4151 38 1041 39 4432 40 4492 42 1640 4...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 19938721
Test #23:
score: 30
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1896kb
input:
7 5129508
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 3788 3448 3469 371 1606 4292 71 1820 3177 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 3336 4369 4328 4277 3547 2949 3788 3448 3469 371 1606 4292 71 1820 3177 364 1520 3572 102 1128 2675 99...
output:
8 4727 2364 1 3876 2 1584 3 4126 3 4353 4 3699 6 378 7 769 8 433 9 1958 9 3569 9 4340 10 2728 11 1795 12 1163 14 979 15 1098 16 2959 17 1968 18 2218 18 2798 18 4160 19 2079 20 994 21 2627 22 27 23 2655 24 2779 25 2422 26 3878 29 2302 30 3114 31 695 32 253 33 1413 34 1495 35 4151 38 1041 40 686 41 43...
input:
8 4727 2364 1 3876 2 1584 3 4126 3 4353 4 3699 6 378 7 769 8 433 9 1958 9 3569 9 4340 10 2728 11 1795 12 1163 14 979 15 1098 16 2959 17 1968 18 2218 18 2798 18 4160 19 2079 20 994 21 2627 22 27 23 2655 24 2779 25 2422 26 3878 29 2302 30 3114 31 695 32 253 33 1413 34 1495 35 4151 38 1041 40 686 41 43...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 5129508
Test #24:
score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1888kb,1900kb
input:
7 15332941
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 2327 4369 4328 4277 3547 2949 3788 3448 3469 371 1606 4292 14 1820 3177 364 1520 3572 102 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 7 4727 3620 4686 1284 2131 581 203 557 4017 3715 2706 1116 2050 2595 2327 4369 4328 4277 3547 2949 3788 3448 3469 371 1606 4292 14 1820 3177 364 1520 3572 102 1128 2675 99...
output:
8 4727 2364 2 1277 2 1584 3 4126 4 3699 6 378 7 769 8 433 9 1958 9 4340 10 2728 11 1795 12 1163 14 1444 14 4292 16 2959 17 1968 18 4160 19 2079 20 327 21 2627 23 1118 24 1451 25 2422 26 3878 27 1825 29 2302 30 3114 31 695 32 253 33 1413 34 496 38 1041 40 686 42 4718 44 1450 46 2263 48 4605 50 851 52...
input:
8 4727 2364 2 1277 2 1584 3 4126 4 3699 6 378 7 769 8 433 9 1958 9 4340 10 2728 11 1795 12 1163 14 1444 14 4292 16 2959 17 1968 18 4160 19 2079 20 327 21 2627 23 1118 24 1451 25 2422 26 3878 27 1825 29 2302 30 3114 31 695 32 253 33 1413 34 496 38 1041 40 686 42 4718 44 1450 46 2263 48 4605 50 851 52...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 15332941
Subtask #3:
score: 0
Wrong Answer
Test #25:
score: 65
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1912kb
input:
1 355365355024496523
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 3878 581 203 557 2170 3715 3484 1116 842 2595 2327 4369 112 4277 2655 2949 2337 3448 3469 371 1606 4292 14 1820 3532 364 4502 3572 4414 1128 2675 994...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 3878 581 203 557 2170 3715 3484 1116 842 2595 2327 4369 112 4277 2655 2949 2337 3448 3469 371 1606 4292 14 1820 3532 364 4502 3572 4414 1128 2675 994...
output:
2 4727 3283 1 3876 2 1317 3 663 6 378 7 1746 8 2965 9 2803 9 4340 10 2728 11 1378 12 4282 13 251 13 2162 13 3904 14 979 14 4292 15 1098 15 1184 15 3030 15 3960 16 3550 18 422 21 1779 21 2627 23 2655 24 1451 26 3878 28 349 28 791 28 3053 29 1257 30 3114 32 253 36 349 37 233 37 426 37 1273 37 1835 37 ...
input:
2 4727 3283 1 3876 2 1317 3 663 6 378 7 1746 8 2965 9 2803 9 4340 10 2728 11 1378 12 4282 13 251 13 2162 13 3904 14 979 14 4292 15 1098 15 1184 15 3030 15 3960 16 3550 18 422 21 1779 21 2627 23 2655 24 1451 26 3878 28 349 28 791 28 3053 29 1257 30 3114 32 253 36 349 37 233 37 426 37 1273 37 1835 37 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 355365355024496523
Test #26:
score: 65
Accepted
time: 1ms = 1ms + 0ms
memory: 1888kb,1916kb
input:
1 727827999106414164
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 3878 581 9 557 4017 3715 2706 1116 2050 2595 2327 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3177 364 1520 3572 4414 1128 2675 994...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 3878 581 9 557 4017 3715 2706 1116 2050 2595 2327 4369 4328 4277 3547 2949 2337 3448 3469 371 1606 4292 71 1820 3177 364 1520 3572 4414 1128 2675 994...
output:
2 4727 3283 1 2882 2 1584 3 236 3 4126 6 3638 7 769 7 1746 7 3104 8 433 9 581 9 1958 9 4340 10 3061 11 3794 12 1888 13 175 13 1248 13 2162 13 3500 13 3904 14 979 14 1444 15 266 15 1098 15 3030 15 3952 15 4465 16 2959 18 422 18 2060 18 4160 21 2582 23 1118 24 2779 26 3878 28 791 28 1057 28 2772 29 23...
input:
2 4727 3283 1 2882 2 1584 3 236 3 4126 6 3638 7 769 7 1746 7 3104 8 433 9 581 9 1958 9 4340 10 3061 11 3794 12 1888 13 175 13 1248 13 2162 13 3500 13 3904 14 979 14 1444 15 266 15 1098 15 3030 15 3952 15 4465 16 2959 18 422 18 2060 18 4160 21 2582 23 1118 24 2779 26 3878 28 791 28 1057 28 2772 29 23...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 727827999106414164
Test #27:
score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1892kb,1920kb
input:
1 656410143989222955
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 2131 581 203 557 4017 3715 3484 1116 2050 2595 3336 4369 112 4277 3547 2949 2337 3448 3469 371 1411 4292 14 1820 3532 364 1520 3572 4414 1128 2675 99...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 2131 581 203 557 4017 3715 3484 1116 2050 2595 3336 4369 112 4277 3547 2949 2337 3448 3469 371 1411 4292 14 1820 3532 364 1520 3572 4414 1128 2675 99...
output:
2 4727 3283 1 2882 2 1277 2 1317 3 663 6 3638 7 769 7 838 8 2965 9 2803 10 2728 11 3794 12 4282 13 251 13 1248 13 2162 13 3904 14 1444 14 4292 15 3030 15 3960 15 4465 16 2959 18 422 18 2060 18 4160 21 1779 21 2582 23 1118 24 1451 26 3878 28 791 28 1057 28 2772 29 1257 30 1543 32 253 36 349 37 352 37...
input:
2 4727 3283 1 2882 2 1277 2 1317 3 663 6 3638 7 769 7 838 8 2965 9 2803 10 2728 11 3794 12 4282 13 251 13 1248 13 2162 13 3904 14 1444 14 4292 15 3030 15 3960 15 4465 16 2959 18 422 18 2060 18 4160 21 1779 21 2582 23 1118 24 1451 26 3878 28 791 28 1057 28 2772 29 1257 30 1543 32 253 36 349 37 352 37...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 656410143989222955
Test #28:
score: 65
Accepted
time: 1ms = 1ms + 0ms
memory: 1888kb,1920kb
input:
1 410366615149657534
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 3878 581 203 557 4017 3715 3484 1116 842 2595 2327 4369 4328 4277 3547 2949 3788 3448 3469 371 1411 4292 14 1820 3532 364 1520 3572 102 1128 401 994 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 3878 581 203 557 4017 3715 3484 1116 842 2595 2327 4369 4328 4277 3547 2949 3788 3448 3469 371 1411 4292 14 1820 3532 364 1520 3572 102 1128 401 994 ...
output:
2 4727 3283 1 3876 2 1277 2 1317 3 663 6 378 7 838 7 3104 8 2965 10 3061 11 1378 12 1888 13 175 13 251 13 2162 13 3500 13 3585 13 3904 14 4292 15 1184 15 3952 15 4668 16 3550 18 2218 18 3463 21 1779 21 2627 23 2655 24 1451 26 3878 28 349 28 804 28 1057 28 3053 29 1257 30 3114 32 253 35 4151 36 3591 ...
input:
2 4727 3283 1 3876 2 1277 2 1317 3 663 6 378 7 838 7 3104 8 2965 10 3061 11 1378 12 1888 13 175 13 251 13 2162 13 3500 13 3585 13 3904 14 4292 15 1184 15 3952 15 4668 16 3550 18 2218 18 3463 21 1779 21 2627 23 2655 24 1451 26 3878 28 349 28 804 28 1057 28 3053 29 1257 30 3114 32 253 35 4151 36 3591 ...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 410366615149657534
Test #29:
score: 65
Accepted
time: 1ms = 1ms + 0ms
memory: 1892kb,1916kb
input:
1 298090682780948428
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 3878 581 9 557 2170 3715 2706 1116 842 2595 3336 4369 4328 4277 3547 2949 2337 3448 1929 371 1606 4292 71 1820 3177 364 4502 3572 4414 1128 2675 994 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 1 4727 3620 4686 1284 3878 581 9 557 2170 3715 2706 1116 842 2595 3336 4369 4328 4277 3547 2949 2337 3448 1929 371 1606 4292 71 1820 3177 364 4502 3572 4414 1128 2675 994 ...
output:
2 4727 3283 1 2882 2 1317 3 236 3 4126 6 3638 7 1746 8 433 9 581 9 1958 9 4340 10 2728 11 1378 12 1888 13 175 13 2162 13 3500 13 3904 14 979 14 1444 15 266 15 1098 15 1184 15 3952 16 3550 18 422 18 2060 21 2582 23 2655 24 1451 26 378 28 349 28 3053 29 2302 30 1543 32 253 36 3591 37 426 37 1247 37 12...
input:
2 4727 3283 1 2882 2 1317 3 236 3 4126 6 3638 7 1746 8 433 9 581 9 1958 9 4340 10 2728 11 1378 12 1888 13 175 13 2162 13 3500 13 3904 14 979 14 1444 15 266 15 1098 15 1184 15 3952 16 3550 18 422 18 2060 21 2582 23 2655 24 1451 26 378 28 349 28 3053 29 2302 30 1543 32 253 36 3591 37 426 37 1247 37 12...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 298090682780948428
Test #30:
score: 0
Wrong Answer
time: 1ms = 1ms + 0ms
memory: 1892kb,1904kb
input:
3 969441916331132577
output:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4727 3620 4686 1284 3878 581 203 557 4017 3715 3484 1116 842 2595 3336 4369 112 4277 2655 2949 3788 3448 1929 371 1606 4292 71 1820 3177 364 1520 3572 102 1128 2675 994 ...
input:
a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022 3 4727 3620 4686 1284 3878 581 203 557 4017 3715 3484 1116 842 2595 3336 4369 112 4277 2655 2949 3788 3448 1929 371 1606 4292 71 1820 3177 364 1520 3572 102 1128 2675 994 ...
output:
4 4727 2364 1 2882 2 1584 3 663 3 4126 5 1155 8 2965 10 2728 11 1795 12 1163 14 1444 15 1098 15 3960 18 4160 19 2008 21 1779 21 2627 22 27 23 1118 24 2779 25 736 28 1057 29 1257 30 3114 33 1413 34 1495 39 4432 39 4533 43 353 46 2263 48 4605 49 915 50 81 50 2174 50 3522 52 1084 54 782 55 1201 57 4237...
input:
4 4727 2364 1 2882 2 1584 3 663 3 4126 5 1155 8 2965 10 2728 11 1795 12 1163 14 1444 15 1098 15 3960 18 4160 19 2008 21 1779 21 2627 22 27 23 1118 24 2779 25 736 28 1057 29 1257 30 3114 33 1413 34 1495 39 4432 39 4533 43 353 46 2263 48 4605 49 915 50 81 50 2174 50 3522 52 1084 54 782 55 1201 57 4237...
output:
08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e 392981164027709089