QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#250059 | #7629. Make SYSU Great Again II | ucup-team2307# | AC ✓ | 1158ms | 100660kb | C++17 | 2.1kb | 2023-11-12 20:59:12 | 2023-11-12 20:59:14 |
Judging History
answer
#include<bits/stdc++.h>
#define pb push_back
#define fi first
#define se second
//typedef long long ll;
//#define int ll
using namespace std;
int a[2020][2020];
int cnt[2020*2020*4];
const int M = 12;
const int FULL = (1<<M) - 1;
const int FULL2 = (1<<(2*M)) - 1;
vector<int> submasks[1<<M];
vector<int> upmasks[1<<M];
int okcnt[1<<M][1<<M];
main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
for (int i=0; i<(1<<M); i++)
for (int j=0; j<=i; j++)
if ((i&j) == j)
submasks[i].pb(j), upmasks[j].pb(i);
for (int i=0; i<(1<<M); i++)
for (int j=0; j<(1<<M); j++)
okcnt[i][j]=submasks[j].size();
int n;
cin>>n;
int mnk = 0;
for (int i=1; i<=n; i++)
for (int j=1; j<=n; j++)
{
while (cnt[mnk] == 5)
mnk++;
bool ok = false;
int mask = FULL2 - (a[i][j-1] | a[i-1][j]);
// random_shuffle(submasks[mask>>M].begin(), submasks[mask>>M].end());
for (int k1 : submasks[mask>>M])
{
// if ((k1<<M) < 4*n*n)
if (okcnt[k1][mask&FULL] == 0)
{
// cout<<"otsek"<<endl;
continue;
}
for (int k2 : submasks[mask&FULL])
{
int k = (k1<<M) + k2;
if (k >= 4*n*n)
{
continue;
}
if (cnt[k] < 5)
{
a[i][j] = k;
cnt[k]++;
if (cnt[k] == 5)
{
for (int i : upmasks[k2])
okcnt[k1][i]--;
}
ok = true;
break;
}
}
if (ok)
break;
}
if (!ok)
cout<<"WA "<<i<<" "<<j<<"\n", exit(1);
}
cout<<"Yes\n";
for (int i=1; i<=n; i++, cout<<"\n")
for (int j=1; j<=n; j++)
cout<<a[i][j]<<" ";
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 22ms
memory: 74380kb
input:
4
output:
Yes 0 0 0 0 0 1 2 1 1 2 1 2 2 1 2 4
result:
ok 1
Test #2:
score: 0
Accepted
time: 23ms
memory: 75380kb
input:
1
output:
Yes 0
result:
ok 1
Test #3:
score: 0
Accepted
time: 15ms
memory: 73956kb
input:
2
output:
Yes 0 0 0 0
result:
ok 1
Test #4:
score: 0
Accepted
time: 17ms
memory: 74208kb
input:
3
output:
Yes 0 0 0 0 0 1 1 2 4
result:
ok 1
Test #5:
score: 0
Accepted
time: 18ms
memory: 73844kb
input:
5
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 8 4 8 4 3 4 3 4 3
result:
ok 1
Test #6:
score: 0
Accepted
time: 13ms
memory: 73792kb
input:
8
output:
Yes 0 0 0 0 0 1 2 1 1 2 1 2 1 2 4 2 4 8 4 8 4 8 3 4 3 16 3 16 3 16 8 3 8 5 16 5 16 5 18 12 5 10 5 10 32 10 32 17 10 17 10 17 6 17 6 32 17 6 32 6 9 6 9 18
result:
ok 1
Test #7:
score: 0
Accepted
time: 22ms
memory: 74632kb
input:
13
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 8 4 8 4 8 4 8 5 6 8 3 12 3 16 3 16 3 16 9 6 16 9 6 16 32 12 32 12 32 12 32 6 9 6 18 9 32 5 18 5 18 5 18 5 24 34 9 12 18 13 34 13 34 13 34 13 34 64 13 48 17 36 64 17 64 17 64 17 64 17 10 48 7 10 65 10 36 10 36 10 36 11 36 65 14 48 20 40 20 11 20 11 20 1...
result:
ok 1
Test #8:
score: 0
Accepted
time: 22ms
memory: 73972kb
input:
21
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 3 4 3 4 8 6 8 6 8 6 8 6 8 6 9 16 12 16 12 16 12 12 16 12 16 5 24 5 24 5 24 5 24 5 24 32 7 32 7 32 7 32 17 10 17 10 32 7 40 7 40 64 10 33 10 33 10 48 9 48 9 48 9 14 17 14 17 14 48 64 40 17 14 33 14 33 18 33 64 18 9 18 13 18 48 64 49 64 49 66 13 18 36...
result:
ok 1
Test #9:
score: 0
Accepted
time: 12ms
memory: 75316kb
input:
34
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 12 16 12 16 12 16 12 17 12 17 32 7 24 7 24 7 24 7 24 7 10 17 10 17 32 17 32 24 32 25 32 25 34 13 18 13 18 13 18 13 18 36 18 36 10 48 64 40 64 40 64 40 64 40 20 10 20 34 13 34 20 33 14 64 11 36 2...
result:
ok 1
Test #10:
score: 0
Accepted
time: 19ms
memory: 75684kb
input:
55
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 7 24 32 10 17 10 17 10 17 10 17 12 17 12 32 11 20 11 20 11 20 11 20 11 20 32 18 32 18 32 18 33 18 33 18 33 12 33 22 33 22 40 22 40 22 40 22 40 64 12 48 12 48 13 48 24 34 13 48 14...
result:
ok 1
Test #11:
score: 0
Accepted
time: 24ms
memory: 76068kb
input:
89
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 14 32 14 33 14 33 14 33 14 33 24 36 19 36 19 36 19 36 19 36 19 ...
result:
ok 1
Test #12:
score: 0
Accepted
time: 25ms
memory: 75320kb
input:
100
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 14 33 14 33 14 48 64 14 33 14 33 22 33 22 40 ...
result:
ok 1
Test #13:
score: 0
Accepted
time: 25ms
memory: 75516kb
input:
200
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #14:
score: 0
Accepted
time: 39ms
memory: 75716kb
input:
300
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #15:
score: 0
Accepted
time: 48ms
memory: 77272kb
input:
400
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #16:
score: 0
Accepted
time: 62ms
memory: 79012kb
input:
500
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #17:
score: 0
Accepted
time: 90ms
memory: 79208kb
input:
600
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #18:
score: 0
Accepted
time: 108ms
memory: 81060kb
input:
700
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #19:
score: 0
Accepted
time: 162ms
memory: 81616kb
input:
800
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #20:
score: 0
Accepted
time: 194ms
memory: 82956kb
input:
900
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #21:
score: 0
Accepted
time: 248ms
memory: 84796kb
input:
1000
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #22:
score: 0
Accepted
time: 348ms
memory: 87544kb
input:
1200
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #23:
score: 0
Accepted
time: 504ms
memory: 91844kb
input:
1400
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #24:
score: 0
Accepted
time: 700ms
memory: 95580kb
input:
1600
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #25:
score: 0
Accepted
time: 905ms
memory: 98284kb
input:
1800
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #26:
score: 0
Accepted
time: 1005ms
memory: 98704kb
input:
1900
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #27:
score: 0
Accepted
time: 1061ms
memory: 98996kb
input:
1920
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #28:
score: 0
Accepted
time: 1158ms
memory: 100660kb
input:
2000
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #29:
score: 0
Accepted
time: 19ms
memory: 74752kb
input:
62
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 10 17 10 17 12 18 12 18 12 18 12 18 12 18 13 32 20 11 20 11 20 11 20 11 20 32 24 32 24 32 24 33 26 33 26 33 14 17 34 17 34 25 34 25 34 25 34 13 48 11 48 13 48 ...
result:
ok 1
Test #30:
score: 0
Accepted
time: 21ms
memory: 75316kb
input:
130
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #31:
score: 0
Accepted
time: 24ms
memory: 75084kb
input:
126
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #32:
score: 0
Accepted
time: 19ms
memory: 74780kb
input:
66
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 11 20 11 20 11 20 32 12 17 12 17 12 32 12 32 11 20 11 20 32 12 18 36 18 36 18 40 18 40 18 40 19 40 19 40 21 34 24 34 24 34 24 34 25 34 25 36 64 48 ...
result:
ok 1
Test #33:
score: 0
Accepted
time: 255ms
memory: 84936kb
input:
1021
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #34:
score: 0
Accepted
time: 241ms
memory: 85528kb
input:
1022
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #35:
score: 0
Accepted
time: 244ms
memory: 84880kb
input:
1023
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #36:
score: 0
Accepted
time: 262ms
memory: 86220kb
input:
1024
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #37:
score: 0
Accepted
time: 254ms
memory: 85012kb
input:
1025
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #38:
score: 0
Accepted
time: 240ms
memory: 84892kb
input:
1026
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Test #39:
score: 0
Accepted
time: 260ms
memory: 85112kb
input:
1027
output:
Yes 0 0 0 0 0 1 2 1 2 1 2 1 2 1 2 4 3 4 3 4 3 4 3 4 3 8 5 8 5 8 5 8 5 8 5 10 16 6 9 6 9 6 9 6 9 6 9 16 7 16 7 16 7 16 7 24 7 24 32 10 17 10 17 10 17 10 17 12 17 12 18 12 18 12 18 12 18 13 18 13 32 11 20 11 20 11 20 11 20 11 20 32 13 32 13 32 13 34 21 34 21 34 21 34 21 34 21 40 19 36 19 36 19 36 19 3...
result:
ok 1
Extra Test:
score: 0
Extra Test Passed