QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#290803 | #3269. 末日魔法少女计划 | Crying | 100 ✓ | 81ms | 4220kb | C++17 | 3.1kb | 2023-12-25 15:47:06 | 2023-12-25 15:47:06 |
Judging History
answer
#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=(a);i<=(b);i++)
#define per(i,a,b) for(int i=(a);i>=(b);i--)
#define op(x) ((x&1)?x+1:x-1)
#define odd(x) (x&1)
#define even(x) (!odd(x))
#define lc(x) (x<<1)
#define rc(x) (lc(x)|1)
#define lowbit(x) (x&-x)
#define mp(x,y) make_pair(x,y)
typedef long long ll;
typedef unsigned long long ull;
typedef double db;
using namespace std;
const int MAXN = 2010,MAXK = 20,INF = 1e8;
int n,k,f[MAXK][MAXN],pf[MAXK][MAXN],g[MAXK][MAXN],pg[MAXK][MAXN];
typedef array<int,2> pr;
vector<pr> ret;
void link(int x,int y){
assert(y-x>1);
ret.push_back({x,y});
}
void out(){
cout<<ret.size()<<"\n";
for(auto [x,y] : ret)cout<<x-1<<" "<<y-1<<"\n";
}
void cmin(int& f,int& p,int vf,int vp){
if(vf<f){
f = vf;
p = vp;
}
}
int Fp(int k,int n){
if(n<=1)return 0;
return f[k][n-1] + (n-2);
}
int Fs(int k,int n){
if(n<=1)return 0;
return f[k][n] + (n-1);
}
int Fps(int k,int n){
if(n<=1)return 0;
return f[k][n-1] + (2*n-3);
}
void calc(int k,int n){
f[k][n] = INF;
rep(i,1,n/2){ //两侧的块大小
int cost = g[k][n-2*i] + Fs(k,i) + Fp(k,i);
cmin(f[k][n],pf[k][n],cost,i);
if(n-2*i>0){
int cost = g[k][n-2*i-1] + Fs(k,i) + Fp(k,i+1);
cmin(f[k][n],pf[k][n],cost,-i);
}
}
}
void _calc(int k,int n){
g[k][n] = INF;
rep(i,1,n){ //块的总数
int cost = f[k-2][i+1] + Fps(k,n/i)*(i-n%i) + Fps(k,n/i+1)*(n%i);
cmin(g[k][n],pg[k][n],cost,i);
}
}
int arr[MAXN];
void solve(const int*,int,int);
void _solve(const int*,int,int);
void sp(const int*,int,int);
void ss(const int*,int,int);
void spf(const int*,int,int);
int main(){
//freopen("matrix.in","r",stdin);
//freopen("matrix.out","w",stdout);
cin>>n>>k; n++;
rep(i,3,n)f[1][i] = (i-2)*(i-1)/2;
rep(i,4,n){
int mid = (i+1)/2;
f[2][i] = f[2][mid-1] + f[2][i-mid] + (i-3);
}
//
rep(j,3,k){
rep(i,1,n){
if(i>=j+2)calc(j,i);
_calc(j,i);
}
}
rep(i,1,n)arr[i] = i;
solve(arr,k,n);
out();
return 0;
}
void sp(const int* arr,int k,int n){
if(n<=1)return;
solve(arr+1,k,n-1);
rep(i,3,n)link(arr[1],arr[i]);
}
void ss(const int* arr,int k,int n){
if(n<=1)return;
solve(arr,k,n);
rep(i,1,n-1)link(arr[i],arr[n+1]);
}
void spf(const int* arr,int k,int n){
if(n<=1)return;
solve(arr+1,k,n-1);
rep(i,3,n)link(arr[1],arr[i]);
rep(i,1,n-1)link(arr[i],arr[n+1]);
}
void _solve(const int* arr,int k,int n){
assert(n); int i = pg[k][n];
int cnt = n%i; //前cnt个的长度是n/i+1,后i-cnt个的长度是n/i
int tmp[MAXN],tot=0;
for(int p=1,cur=0,len=0;cur<i;p+=len,cur++){
len=n/i+(cur<cnt);
spf(arr+p-1,k,len);
tmp[++tot] = arr[p];
}
tmp[++tot] = arr[n+1];
solve(tmp,k-2,tot);
}
void solve(const int* arr,int k,int n){
if(n <= k+1)return;
if(k==1){
rep(i,1,n)rep(j,i+2,n)link(arr[i],arr[j]);
return;
}else if(k==2){
int mid = (n+1)/2;
solve(arr,k,mid-1);
solve(arr+mid,k,n-mid);
rep(i,1,mid-2)link(arr[i],arr[mid]);
rep(i,mid+2,n)link(arr[mid],arr[i]);
return;
}
int i = abs(pf[k][n]),tag = (pf[k][n] < 0);
ss(arr,k,i); sp(arr+n-i-tag,k,i + tag);
_solve(arr+i,k,n-2*i-tag);
}
詳細信息
Subtask #1:
score: 22
Accepted
Test #1:
score: 22
Accepted
time: 0ms
memory: 3836kb
input:
2000 2
output:
15974 0 2 2 4 2 5 7 10 8 10 10 12 10 13 0 6 1 6 2 6 3 6 4 6 6 8 6 9 6 10 6 11 6 12 6 13 15 18 16 18 18 20 18 21 23 26 24 26 26 28 26 29 15 22 16 22 17 22 18 22 19 22 20 22 22 24 22 25 22 26 22 27 22 28 22 29 0 14 1 14 2 14 3 14 4 14 5 14 6 14 7 14 8 14 9 14 10 14 11 14 12 14 14 16 14 17 14 18 14 19 ...
result:
ok
Test #2:
score: 22
Accepted
time: 2ms
memory: 3780kb
input:
1999 2
output:
15965 0 2 2 4 2 5 7 10 8 10 10 12 10 13 0 6 1 6 2 6 3 6 4 6 6 8 6 9 6 10 6 11 6 12 6 13 15 18 16 18 18 20 18 21 23 26 24 26 26 28 26 29 15 22 16 22 17 22 18 22 19 22 20 22 22 24 22 25 22 26 22 27 22 28 22 29 0 14 1 14 2 14 3 14 4 14 5 14 6 14 7 14 8 14 9 14 10 14 11 14 12 14 14 16 14 17 14 18 14 19 ...
result:
ok
Test #3:
score: 22
Accepted
time: 2ms
memory: 3868kb
input:
1992 2
output:
15902 0 2 2 4 2 5 7 10 8 10 10 12 10 13 0 6 1 6 2 6 3 6 4 6 6 8 6 9 6 10 6 11 6 12 6 13 15 18 16 18 18 20 18 21 23 26 24 26 26 28 26 29 15 22 16 22 17 22 18 22 19 22 20 22 22 24 22 25 22 26 22 27 22 28 22 29 0 14 1 14 2 14 3 14 4 14 5 14 6 14 7 14 8 14 9 14 10 14 11 14 12 14 14 16 14 17 14 18 14 19 ...
result:
ok
Test #4:
score: 22
Accepted
time: 0ms
memory: 3876kb
input:
1973 2
output:
15731 0 2 2 4 2 5 7 10 8 10 10 12 10 13 0 6 1 6 2 6 3 6 4 6 6 8 6 9 6 10 6 11 6 12 6 13 15 17 17 19 17 20 22 25 23 25 25 27 25 28 15 21 16 21 17 21 18 21 19 21 21 23 21 24 21 25 21 26 21 27 21 28 0 14 1 14 2 14 3 14 4 14 5 14 6 14 7 14 8 14 9 14 10 14 11 14 12 14 14 16 14 17 14 18 14 19 14 20 14 21 ...
result:
ok
Test #5:
score: 22
Accepted
time: 2ms
memory: 3768kb
input:
1936 2
output:
15398 0 2 2 4 2 5 7 10 8 10 10 12 10 13 0 6 1 6 2 6 3 6 4 6 6 8 6 9 6 10 6 11 6 12 6 13 15 17 17 19 17 20 22 25 23 25 25 27 25 28 15 21 16 21 17 21 18 21 19 21 21 23 21 24 21 25 21 26 21 27 21 28 0 14 1 14 2 14 3 14 4 14 5 14 6 14 7 14 8 14 9 14 10 14 11 14 12 14 14 16 14 17 14 18 14 19 14 20 14 21 ...
result:
ok
Subtask #2:
score: 14
Accepted
Test #6:
score: 14
Accepted
time: 7ms
memory: 3836kb
input:
1936 3
output:
7339 0 4 1 4 2 4 8 10 8 11 8 12 4 6 6 8 4 8 0 13 1 13 2 13 3 13 4 13 5 13 6 13 7 13 8 13 9 13 10 13 11 13 34 38 35 38 36 38 42 44 42 45 42 46 38 40 40 42 38 42 33 35 33 36 33 37 33 38 33 39 33 40 33 41 33 42 33 43 33 44 33 45 33 46 13 15 13 16 13 17 13 18 14 18 15 18 16 18 18 20 18 21 18 22 18 23 19...
result:
ok
Test #7:
score: 14
Accepted
time: 7ms
memory: 3860kb
input:
2000 3
output:
7606 0 4 1 4 2 4 8 10 8 11 8 12 4 6 6 8 4 8 0 13 1 13 2 13 3 13 4 13 5 13 6 13 7 13 8 13 9 13 10 13 11 13 34 38 35 38 36 38 42 44 42 45 38 40 40 42 38 42 33 35 33 36 33 37 33 38 33 39 33 40 33 41 33 42 33 43 33 44 33 45 13 15 13 16 13 17 13 18 14 18 15 18 16 18 18 20 18 21 18 22 18 23 19 23 20 23 21...
result:
ok
Test #8:
score: 14
Accepted
time: 3ms
memory: 3780kb
input:
1999 3
output:
7602 0 4 1 4 2 4 8 10 8 11 8 12 4 6 6 8 4 8 0 13 1 13 2 13 3 13 4 13 5 13 6 13 7 13 8 13 9 13 10 13 11 13 34 38 35 38 36 38 42 44 42 45 38 40 40 42 38 42 33 35 33 36 33 37 33 38 33 39 33 40 33 41 33 42 33 43 33 44 33 45 13 15 13 16 13 17 13 18 14 18 15 18 16 18 18 20 18 21 18 22 18 23 19 23 20 23 21...
result:
ok
Test #9:
score: 14
Accepted
time: 7ms
memory: 3832kb
input:
1992 3
output:
7574 0 4 1 4 2 4 8 10 8 11 4 6 6 8 4 8 0 12 1 12 2 12 3 12 4 12 5 12 6 12 7 12 8 12 9 12 10 12 33 36 34 36 40 42 40 43 36 38 38 40 36 40 32 34 32 35 32 36 32 37 32 38 32 39 32 40 32 41 32 42 32 43 12 14 12 15 12 16 12 17 13 17 14 17 15 17 17 19 17 20 17 21 17 22 18 22 19 22 20 22 22 24 22 25 22 26 2...
result:
ok
Test #10:
score: 14
Accepted
time: 7ms
memory: 3832kb
input:
1973 3
output:
7494 0 4 1 4 2 4 8 10 8 11 4 6 6 8 4 8 0 12 1 12 2 12 3 12 4 12 5 12 6 12 7 12 8 12 9 12 10 12 33 36 34 36 40 42 40 43 36 38 38 40 36 40 32 34 32 35 32 36 32 37 32 38 32 39 32 40 32 41 32 42 32 43 12 14 12 15 12 16 12 17 13 17 14 17 15 17 17 19 17 20 17 21 17 22 18 22 19 22 20 22 22 24 22 25 22 26 2...
result:
ok
Subtask #3:
score: 11
Accepted
Test #11:
score: 11
Accepted
time: 13ms
memory: 3776kb
input:
2000 4
output:
4792 0 5 1 5 2 5 3 5 31 33 31 34 31 35 31 36 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 5 9 9 13 9 15 19 25 21 25 25 29 25 31 5 17 7 17 9 17 11 17 13 17 17 21 17 23 17 25 17 27 17 29 17 31 0 37 1 37 2 37 3 37 4 37 5 37 6 37 7 37 8 37 9 37 10 37 11 37 12 37 13 37 14 37 1...
result:
ok
Test #12:
score: 11
Accepted
time: 13ms
memory: 3864kb
input:
1999 4
output:
4789 0 5 1 5 2 5 3 5 33 35 33 36 33 37 33 38 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 5 11 7 11 11 15 11 17 21 27 23 27 27 31 27 33 5 19 7 19 9 19 11 19 13 19 15 19 19 23 19 25 19 27 19 29 19 31 19 33 0 39 1 39 2 39 3 39 4 39 5 39 6 39 7 39 8 39 9 39 10 39 11 39...
result:
ok
Test #13:
score: 11
Accepted
time: 10ms
memory: 3916kb
input:
1991 4
output:
4768 0 5 1 5 2 5 3 5 33 35 33 36 33 37 33 38 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 5 11 7 11 11 15 11 17 21 27 23 27 27 31 27 33 5 19 7 19 9 19 11 19 13 19 15 19 19 23 19 25 19 27 19 29 19 31 19 33 0 39 1 39 2 39 3 39 4 39 5 39 6 39 7 39 8 39 9 39 10 39 11 39...
result:
ok
Test #14:
score: 11
Accepted
time: 13ms
memory: 3788kb
input:
1971 4
output:
4715 0 5 1 5 2 5 3 5 31 33 31 34 31 35 31 36 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 5 9 9 13 9 15 19 25 21 25 25 29 25 31 5 17 7 17 9 17 11 17 13 17 17 21 17 23 17 25 17 27 17 29 17 31 0 37 1 37 2 37 3 37 4 37 5 37 6 37 7 37 8 37 9 37 10 37 11 37 12 37 13 37 14 37 1...
result:
ok
Test #15:
score: 11
Accepted
time: 13ms
memory: 3776kb
input:
1938 4
output:
4626 0 5 1 5 2 5 3 5 33 35 33 36 33 37 33 38 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 5 11 7 11 11 15 11 17 21 27 23 27 27 31 27 33 5 19 7 19 9 19 11 19 13 19 15 19 19 23 19 25 19 27 19 29 19 31 19 33 0 39 1 39 2 39 3 39 4 39 5 39 6 39 7 39 8 39 9 39 10 39 11 39...
result:
ok
Subtask #4:
score: 9
Accepted
Test #16:
score: 9
Accepted
time: 19ms
memory: 3864kb
input:
2000 5
output:
3922 0 5 1 5 2 5 3 5 29 31 29 32 29 33 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 5 13 7 13 9 13 21 25 21 27 21 29 13 17 17 21 13 21 0 34 1 34 2 34 3 34 4 34 5 34 6 34 7 34 8 34 9 34 10 34 11 34 12 34 13 34 14 34 15 34 16 34 17 34 18 34 19 34 20 34 21 34 22 34 23 34 24 34 25 ...
result:
ok
Test #17:
score: 9
Accepted
time: 15ms
memory: 3844kb
input:
1999 5
output:
3920 0 5 1 5 2 5 3 5 29 31 29 32 29 33 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 5 13 7 13 9 13 21 25 21 27 21 29 13 17 17 21 13 21 0 34 1 34 2 34 3 34 4 34 5 34 6 34 7 34 8 34 9 34 10 34 11 34 12 34 13 34 14 34 15 34 16 34 17 34 18 34 19 34 20 34 21 34 22 34 23 34 24 34 25 ...
result:
ok
Test #18:
score: 9
Accepted
time: 19ms
memory: 3836kb
input:
1992 5
output:
3906 0 3 1 3 27 29 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 3 11 5 11 7 11 19 23 19 25 19 27 11 15 15 19 11 19 0 30 1 30 2 30 3 30 4 30 5 30 6 30 7 30 8 30 9 30 10 30 11 30 12 30 13 30 14 30 15 30 16 30 17 30 18 30 19 30 20 30 21 30 22 30 23 30 24 30 25 30 26 30 27 30 28 30 1...
result:
ok
Test #19:
score: 9
Accepted
time: 18ms
memory: 3824kb
input:
1973 5
output:
3866 0 5 1 5 2 5 3 5 29 31 29 32 29 33 29 34 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 5 13 7 13 9 13 21 25 21 27 21 29 13 17 17 21 13 21 0 35 1 35 2 35 3 35 4 35 5 35 6 35 7 35 8 35 9 35 10 35 11 35 12 35 13 35 14 35 15 35 16 35 17 35 18 35 19 35 20 35 21 35 22 35 23 35 24 ...
result:
ok
Test #20:
score: 9
Accepted
time: 18ms
memory: 3932kb
input:
1936 5
output:
3792 1 3 3 5 5 7 7 9 9 11 11 13 1 5 5 9 9 13 5 13 0 16 1 16 2 16 3 16 4 16 5 16 6 16 7 16 8 16 9 16 10 16 11 16 12 16 13 16 14 16 1922 1924 1924 1926 1926 1928 1928 1930 1930 1932 1932 1934 1922 1926 1926 1930 1930 1934 1926 1934 1920 1922 1920 1923 1920 1924 1920 1925 1920 1926 1920 1927 1920 1928 ...
result:
ok
Subtask #5:
score: 7
Accepted
Test #21:
score: 7
Accepted
time: 25ms
memory: 3860kb
input:
2000 6
output:
3213 0 7 1 7 2 7 3 7 4 7 5 7 1993 1995 1993 1996 1993 1997 1993 1998 1993 1999 1993 2000 7 9 7 10 8 10 10 12 10 13 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73...
result:
ok
Test #22:
score: 7
Accepted
time: 25ms
memory: 3864kb
input:
1997 6
output:
3208 0 7 1 7 2 7 3 7 4 7 5 7 1991 1993 1991 1994 1991 1995 1991 1996 1991 1997 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73 75 75 77 77 79 79 81 81...
result:
ok
Test #23:
score: 7
Accepted
time: 25ms
memory: 3864kb
input:
1989 6
output:
3194 0 7 1 7 2 7 3 7 4 7 5 7 1983 1985 1983 1986 1983 1987 1983 1988 1983 1989 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73 75 75 77 77 79 79 81 81...
result:
ok
Test #24:
score: 7
Accepted
time: 24ms
memory: 3952kb
input:
1972 6
output:
3164 0 7 1 7 2 7 3 7 4 7 5 7 1965 1967 1965 1968 1965 1969 1965 1970 1965 1971 1965 1972 7 9 7 10 8 10 10 12 10 13 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73...
result:
ok
Test #25:
score: 7
Accepted
time: 23ms
memory: 3792kb
input:
1933 6
output:
3096 0 7 1 7 2 7 3 7 4 7 5 7 1927 1929 1927 1930 1927 1931 1927 1932 1927 1933 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73 75 75 77 77 79 79 81 81...
result:
ok
Subtask #6:
score: 6
Accepted
Test #26:
score: 6
Accepted
time: 31ms
memory: 3904kb
input:
1999 7
output:
2901 0 8 1 8 2 8 3 8 4 8 5 8 6 8 1992 1994 1992 1995 1992 1996 1992 1997 1992 1998 1992 1999 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 74 76 76 7...
result:
ok
Test #27:
score: 6
Accepted
time: 31ms
memory: 3848kb
input:
1997 7
output:
2898 0 8 1 8 2 8 3 8 4 8 5 8 6 8 1990 1992 1990 1993 1990 1994 1990 1995 1990 1996 1990 1997 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 74 76 76 7...
result:
ok
Test #28:
score: 6
Accepted
time: 27ms
memory: 3908kb
input:
1987 7
output:
2883 0 8 1 8 2 8 3 8 4 8 5 8 6 8 1980 1982 1980 1983 1980 1984 1980 1985 1980 1986 1980 1987 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 74 76 76 7...
result:
ok
Test #29:
score: 6
Accepted
time: 30ms
memory: 3992kb
input:
1978 7
output:
2869 0 8 1 8 2 8 3 8 4 8 5 8 6 8 1970 1972 1970 1973 1970 1974 1970 1975 1970 1976 1970 1977 1970 1978 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 ...
result:
ok
Test #30:
score: 6
Accepted
time: 29ms
memory: 3960kb
input:
1931 7
output:
2799 0 8 1 8 2 8 3 8 4 8 5 8 6 8 1924 1926 1924 1927 1924 1928 1924 1929 1924 1930 1924 1931 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 74 76 76 7...
result:
ok
Subtask #7:
score: 5
Accepted
Test #31:
score: 5
Accepted
time: 37ms
memory: 4012kb
input:
1995 8
output:
2501 0 8 1 8 2 8 3 8 4 8 5 8 6 8 1988 1990 1988 1991 1988 1992 1988 1993 1988 1994 1988 1995 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 74 76 76 7...
result:
ok
Test #32:
score: 5
Accepted
time: 37ms
memory: 3876kb
input:
1999 8
output:
2506 0 8 1 8 2 8 3 8 4 8 5 8 6 8 1992 1994 1992 1995 1992 1996 1992 1997 1992 1998 1992 1999 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 74 76 76 7...
result:
ok
Test #33:
score: 5
Accepted
time: 37ms
memory: 3908kb
input:
1987 8
output:
2490 0 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 1979 1981 1979 1982 1979 1983 1979 1984 1979 1985 1979 1986 1979 1987 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73...
result:
ok
Test #34:
score: 5
Accepted
time: 37ms
memory: 3964kb
input:
1981 8
output:
2481 0 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 1973 1975 1973 1976 1973 1977 1973 1978 1973 1979 1973 1980 1973 1981 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73...
result:
ok
Test #35:
score: 5
Accepted
time: 34ms
memory: 3852kb
input:
1923 8
output:
2405 0 8 1 8 2 8 3 8 4 8 5 8 6 8 1916 1918 1916 1919 1916 1920 1916 1921 1916 1922 1916 1923 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 74 76 76 7...
result:
ok
Subtask #8:
score: 5
Accepted
Test #36:
score: 5
Accepted
time: 43ms
memory: 3964kb
input:
1997 9
output:
2392 0 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 1989 1991 1989 1992 1989 1993 1989 1994 1989 1995 1989 1996 1989 1997 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73...
result:
ok
Test #37:
score: 5
Accepted
time: 43ms
memory: 4056kb
input:
1998 9
output:
2393 0 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 1989 1991 1989 1992 1989 1993 1989 1994 1989 1995 1989 1996 1989 1997 1989 1998 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 7...
result:
ok
Test #38:
score: 5
Accepted
time: 43ms
memory: 3912kb
input:
1990 9
output:
2383 0 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 1981 1983 1981 1984 1981 1985 1981 1986 1981 1987 1981 1988 1981 1989 1981 1990 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 7...
result:
ok
Test #39:
score: 5
Accepted
time: 43ms
memory: 3888kb
input:
1975 9
output:
2364 0 10 1 10 2 10 3 10 4 10 5 10 6 10 7 10 8 10 1966 1968 1966 1969 1966 1970 1966 1971 1966 1972 1966 1973 1966 1974 1966 1975 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66...
result:
ok
Test #40:
score: 5
Accepted
time: 40ms
memory: 3956kb
input:
1934 9
output:
2313 0 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 1925 1927 1925 1928 1925 1929 1925 1930 1925 1931 1925 1932 1925 1933 1925 1934 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 7...
result:
ok
Subtask #9:
score: 4
Accepted
Test #41:
score: 4
Accepted
time: 49ms
memory: 3992kb
input:
1995 10
output:
2193 0 8 1 8 2 8 3 8 4 8 5 8 6 8 1988 1990 1988 1991 1988 1992 1988 1993 1988 1994 1988 1995 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 74 76 76 7...
result:
ok
Test #42:
score: 4
Accepted
time: 50ms
memory: 4020kb
input:
1996 10
output:
2194 0 8 1 8 2 8 3 8 4 8 5 8 6 8 1988 1990 1988 1991 1988 1992 1988 1993 1988 1994 1988 1995 1988 1996 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 ...
result:
ok
Test #43:
score: 4
Accepted
time: 48ms
memory: 3940kb
input:
1979 10
output:
2175 0 8 1 8 2 8 3 8 4 8 5 8 6 8 1972 1974 1972 1975 1972 1976 1972 1977 1972 1978 1972 1979 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 74 76 76 7...
result:
ok
Test #44:
score: 4
Accepted
time: 48ms
memory: 4040kb
input:
1972 10
output:
2166 0 10 1 10 2 10 3 10 4 10 5 10 6 10 7 10 8 10 1962 1964 1962 1965 1962 1966 1962 1967 1962 1968 1962 1969 1962 1970 1962 1971 1962 1972 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 6...
result:
ok
Test #45:
score: 4
Accepted
time: 47ms
memory: 3936kb
input:
1945 10
output:
2135 0 11 1 11 2 11 3 11 4 11 5 11 6 11 7 11 8 11 9 11 1935 1937 1935 1938 1935 1939 1935 1940 1935 1941 1935 1942 1935 1943 1935 1944 1935 1945 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63...
result:
ok
Subtask #10:
score: 4
Accepted
Test #46:
score: 4
Accepted
time: 55ms
memory: 4036kb
input:
1993 11
output:
2133 0 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 1985 1987 1985 1988 1985 1989 1985 1990 1985 1991 1985 1992 1985 1993 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73...
result:
ok
Test #47:
score: 4
Accepted
time: 56ms
memory: 4092kb
input:
1994 11
output:
2134 0 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 1985 1987 1985 1988 1985 1989 1985 1990 1985 1991 1985 1992 1985 1993 1985 1994 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 7...
result:
ok
Test #48:
score: 4
Accepted
time: 56ms
memory: 4036kb
input:
2000 11
output:
2140 0 12 1 12 2 12 3 12 4 12 5 12 6 12 7 12 8 12 9 12 10 12 1988 1990 1988 1991 1988 1992 1988 1993 1988 1994 1988 1995 1988 1996 1988 1997 1988 1998 1988 1999 1988 2000 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 ...
result:
ok
Test #49:
score: 4
Accepted
time: 55ms
memory: 4032kb
input:
1972 11
output:
2109 0 10 1 10 2 10 3 10 4 10 5 10 6 10 7 10 8 10 1962 1964 1962 1965 1962 1966 1962 1967 1962 1968 1962 1969 1962 1970 1962 1971 1962 1972 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 6...
result:
ok
Test #50:
score: 4
Accepted
time: 53ms
memory: 4032kb
input:
1944 11
output:
2077 0 12 1 12 2 12 3 12 4 12 5 12 6 12 7 12 8 12 9 12 10 12 1932 1934 1932 1935 1932 1936 1932 1937 1932 1938 1932 1939 1932 1940 1932 1941 1932 1942 1932 1943 1932 1944 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 ...
result:
ok
Subtask #11:
score: 4
Accepted
Test #51:
score: 4
Accepted
time: 62ms
memory: 4072kb
input:
1999 12
output:
2067 0 6 1 6 2 6 3 6 4 6 1994 1996 1994 1997 1994 1998 1994 1999 6 8 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 74 76 76 78 78 80 80 82 82 84 84 8...
result:
ok
Test #52:
score: 4
Accepted
time: 62ms
memory: 4064kb
input:
2000 12
output:
2068 0 6 1 6 2 6 3 6 4 6 1994 1996 1994 1997 1994 1998 1994 1999 1994 2000 6 8 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 74 76 76 78 78 80 80 82 ...
result:
ok
Test #53:
score: 4
Accepted
time: 61ms
memory: 4088kb
input:
1989 12
output:
2056 0 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 1981 1983 1981 1984 1981 1985 1981 1986 1981 1987 1981 1988 1981 1989 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73...
result:
ok
Test #54:
score: 4
Accepted
time: 61ms
memory: 4076kb
input:
1976 12
output:
2042 0 10 1 10 2 10 3 10 4 10 5 10 6 10 7 10 8 10 1966 1968 1966 1969 1966 1970 1966 1971 1966 1972 1966 1973 1966 1974 1966 1975 1966 1976 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 6...
result:
ok
Test #55:
score: 4
Accepted
time: 59ms
memory: 4040kb
input:
1949 12
output:
2013 0 13 1 13 2 13 3 13 4 13 5 13 6 13 7 13 8 13 9 13 10 13 11 13 1937 1939 1937 1940 1937 1941 1937 1942 1937 1943 1937 1944 1937 1945 1937 1946 1937 1947 1937 1948 1937 1949 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 ...
result:
ok
Subtask #12:
score: 3
Accepted
Test #56:
score: 3
Accepted
time: 67ms
memory: 4164kb
input:
1981 13
output:
2004 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73 75 75 77 77 79 79 81 81 83 83 85 85 87 87 89 89 91 91 93 93 95 95 97 97 99 99 101 101...
result:
ok
Test #57:
score: 3
Accepted
time: 67ms
memory: 4172kb
input:
1982 13
output:
2005 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73 75 75 77 77 79 79 81 81 83 83 85 85 87 87 89 89 91 91 93 93 95 95 97 97 99 99 101 101...
result:
ok
Test #58:
score: 3
Accepted
time: 67ms
memory: 4108kb
input:
1989 13
output:
2012 0 3 1 3 1987 1989 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73 75 75 77 77 79 79 81 81 83 83 85 85 87 87 89 89 91 91 93 93 95 95 97 97...
result:
ok
Test #59:
score: 3
Accepted
time: 66ms
memory: 4112kb
input:
1972 13
output:
1994 0 10 1 10 2 10 3 10 4 10 5 10 6 10 7 10 8 10 1962 1964 1962 1965 1962 1966 1962 1967 1962 1968 1962 1969 1962 1970 1962 1971 1962 1972 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 6...
result:
ok
Test #60:
score: 3
Accepted
time: 59ms
memory: 4172kb
input:
1929 13
output:
1949 0 5 1 5 2 5 3 5 1925 1927 1925 1928 1925 1929 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73 75 75 77 77 79 79 81 81 83 83 85 85 87 87 89 89...
result:
ok
Subtask #13:
score: 3
Accepted
Test #61:
score: 3
Accepted
time: 73ms
memory: 4184kb
input:
1979 14
output:
1981 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73 75 75 77 77 79 79 81 81 83 83 85 85 87 87 89 89 91 91 93 93 95 95 97 97 99 99 101 101...
result:
ok
Test #62:
score: 3
Accepted
time: 73ms
memory: 4176kb
input:
1980 14
output:
1982 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73 75 75 77 77 79 79 81 81 83 83 85 85 87 87 89 89 91 91 93 93 95 95 97 97 99 99 101 101...
result:
ok
Test #63:
score: 3
Accepted
time: 69ms
memory: 4060kb
input:
1987 14
output:
1989 0 4 1 4 2 4 1984 1986 1984 1987 4 6 6 8 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 74 76 76 78 78 80 80 82 82 84 84 86 86 88 88 90 90 92 92 9...
result:
ok
Test #64:
score: 3
Accepted
time: 70ms
memory: 4200kb
input:
1952 14
output:
1953 0 2 1950 1952 2 4 4 6 6 8 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 74 76 76 78 78 80 80 82 82 84 84 86 86 88 88 90 90 92 92 94 94 96 96 98 ...
result:
ok
Test #65:
score: 3
Accepted
time: 70ms
memory: 4148kb
input:
1936 14
output:
1936 0 10 1 10 2 10 3 10 4 10 5 10 6 10 7 10 8 10 1926 1928 1926 1929 1926 1930 1926 1931 1926 1932 1926 1933 1926 1934 1926 1935 1926 1936 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 6...
result:
ok
Subtask #14:
score: 3
Accepted
Test #66:
score: 3
Accepted
time: 80ms
memory: 4156kb
input:
2000 15
output:
1988 0 12 1 12 2 12 3 12 4 12 5 12 6 12 7 12 8 12 9 12 10 12 1988 1990 1988 1991 1988 1992 1988 1993 1988 1994 1988 1995 1988 1996 1988 1997 1988 1998 1988 1999 1988 2000 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 ...
result:
ok
Test #67:
score: 3
Accepted
time: 81ms
memory: 4188kb
input:
1999 15
output:
1987 0 12 1 12 2 12 3 12 4 12 5 12 6 12 7 12 8 12 9 12 10 12 1988 1990 1988 1991 1988 1992 1988 1993 1988 1994 1988 1995 1988 1996 1988 1997 1988 1998 1988 1999 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 5...
result:
ok
Test #68:
score: 3
Accepted
time: 79ms
memory: 4212kb
input:
1992 15
output:
1980 0 8 1 8 2 8 3 8 4 8 5 8 6 8 1984 1986 1984 1987 1984 1988 1984 1989 1984 1990 1984 1991 1984 1992 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 62 62 64 64 66 66 68 68 70 70 72 72 74 ...
result:
ok
Test #69:
score: 3
Accepted
time: 78ms
memory: 4156kb
input:
1973 15
output:
1961 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73 75 75 77 77 79 79 81 81 83 83 85 85 87 87 89 89 91 91 93 93 95 95 97 97 99 99 101 101...
result:
ok
Test #70:
score: 3
Accepted
time: 76ms
memory: 4220kb
input:
1936 15
output:
1923 0 12 1 12 2 12 3 12 4 12 5 12 6 12 7 12 8 12 9 12 10 12 1924 1926 1924 1927 1924 1928 1924 1929 1924 1930 1924 1931 1924 1932 1924 1933 1924 1934 1924 1935 1924 1936 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 ...
result:
ok