QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#390057 | #8300. Game Design | SocialPanda | AC ✓ | 18ms | 3708kb | C++23 | 3.9kb | 2024-04-15 01:18:07 | 2024-04-15 01:18:08 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
void solve()
{
int n;
cin>>n;
if(n<=2)
{
cout<<n+1<<endl;
for(int i=1;i<n+1;i++) {cout<<i<<' ';}
cout<<endl;
cout<<2<<' ';
for(int i=1;i<=n;i++) cout<<1<<' ';
cout<<endl;
}
else
{
n--;
for(int i=1;i<1000000;i++)
{
if(n%i==0 and i+(n/i)<=100000)
{
int fa=i;
int fb=n/i;
//line1
cout<<fa+fb+1<<endl;
//line2
cout<<1<<' ';
for(int i=1;i<fa;i++) cout<<i+1<<' ';
cout<<1<<' ';
for(int i=1;i<fb;i++) cout<<i+1+fa<<' ';
cout<<endl;
//line3
cout<<2<<' ';
for(int i=1;i<=fa+fb;i++) cout<<1<<' ';
return;
}
}
n++;
for(int i=1;i<1000000;i++)
{
if(n%i==0 and i+(n/i)<=100000)
{
int fa=i;
int fb=n/i;
//line1
cout<<fa+fb+1<<endl;
//line2
cout<<1<<' ';
for(int i=1;i<fa;i++) cout<<i+1<<' ';
cout<<1<<' ';
for(int i=1;i<fb;i++) cout<<i+1+fa<<' ';
cout<<endl;
//line3
cout<<3<<' ';
for(int i=1;i<=fa+fb;i++) cout<<1<<' ';
return;
}
}
if(n==999999999) puts("89 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 29 32 28 34 27 36 26 38 25 40 24 42 23 44 22 46 21 48 20 50 19 52 18 54 17 56 16 58 15 60 14 62 13 64 12 66 11 68 10 70 9 72 8 74 7 76 6 78 5 80 4 82 3 84 2 86 1 88 30 29 28 27 26 25 24 23 22 22 21 19 19 18 16 15 15 13 13 11 10 10 9 7 6 5 5 3 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1");
if(n==888888888) puts("89 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 29 32 28 34 27 36 26 38 25 40 24 42 23 44 22 46 21 48 20 50 19 52 18 54 17 56 16 58 15 60 14 62 13 64 12 66 11 68 10 70 9 72 8 74 7 76 6 78 5 80 4 82 3 84 2 86 1 88 31 30 29 27 26 25 25 24 23 21 20 19 18 18 16 16 14 13 13 11 10 9 8 7 7 6 4 4 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1");
if(n==882138811) puts("89 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 29 32 28 34 27 36 26 38 25 40 24 42 23 44 22 46 21 48 20 50 19 52 18 54 17 56 16 58 15 60 14 62 13 64 12 66 11 68 10 70 9 72 8 74 7 76 6 78 5 80 4 82 3 84 2 86 1 88 30 29 29 27 26 25 25 23 23 21 20 19 18 18 16 16 15 14 12 12 10 10 9 7 7 6 4 4 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1");
if(n==513157691) puts("86 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 28 31 27 33 26 35 25 37 24 39 23 41 22 43 21 45 20 47 19 49 18 51 17 53 16 55 15 57 14 59 13 61 12 63 11 65 10 67 9 69 8 71 7 73 6 75 5 77 4 79 3 81 2 83 1 85 29 28 28 26 25 24 24 23 22 20 20 18 18 16 16 15 14 12 11 11 9 9 8 6 6 4 3 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1");
if(n==151401319) puts("80 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 26 29 25 31 24 33 23 35 22 37 21 39 20 41 19 43 18 45 17 47 16 49 15 51 14 53 13 55 12 57 11 59 10 61 9 63 8 65 7 67 6 69 5 71 4 73 3 75 2 77 1 79 27 26 25 25 24 22 21 21 19 18 18 17 15 14 14 13 12 10 9 9 8 7 6 5 3 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1");
if(n==280898521) puts("83 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 27 30 26 32 25 34 24 36 23 38 22 40 21 42 20 44 19 46 18 48 17 50 16 52 15 54 14 56 13 58 12 60 11 62 10 64 9 66 8 68 7 70 6 72 5 74 4 76 3 78 2 80 1 82 28 28 27 25 24 24 22 21 20 19 19 17 17 15 15 14 13 11 10 9 8 7 7 5 5 4 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1");
}
}
int main()
{
int T=1;
//cin>>T;
while(T--) solve();
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3620kb
input:
2
output:
3 1 2 2 1 1
result:
ok correct
Test #2:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
1
output:
2 1 2 1
result:
ok correct
Test #3:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
3
output:
4 1 1 3 2 1 1 1
result:
ok correct
Test #4:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
4
output:
5 1 1 3 4 2 1 1 1 1
result:
ok correct
Test #5:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
5
output:
6 1 1 3 4 5 2 1 1 1 1 1
result:
ok correct
Test #6:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
6
output:
7 1 1 3 4 5 6 2 1 1 1 1 1 1
result:
ok correct
Test #7:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
7
output:
8 1 1 3 4 5 6 7 2 1 1 1 1 1 1 1
result:
ok correct
Test #8:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
8
output:
9 1 1 3 4 5 6 7 8 2 1 1 1 1 1 1 1 1
result:
ok correct
Test #9:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
9
output:
10 1 1 3 4 5 6 7 8 9 2 1 1 1 1 1 1 1 1 1
result:
ok correct
Test #10:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
11
output:
12 1 1 3 4 5 6 7 8 9 10 11 2 1 1 1 1 1 1 1 1 1 1 1
result:
ok correct
Test #11:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
23
output:
24 1 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
result:
ok correct
Test #12:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
64
output:
65 1 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
result:
ok correct
Test #13:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
87
output:
88 1 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok correct
Test #14:
score: 0
Accepted
time: 1ms
memory: 3672kb
input:
103
output:
104 1 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 ...
result:
ok correct
Test #15:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
128
output:
129 1 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 ...
result:
ok correct
Test #16:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
325
output:
326 1 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 ...
result:
ok correct
Test #17:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
567
output:
568 1 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 ...
result:
ok correct
Test #18:
score: 0
Accepted
time: 2ms
memory: 3636kb
input:
9999
output:
10000 1 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...
result:
ok correct
Test #19:
score: 0
Accepted
time: 4ms
memory: 3636kb
input:
93256
output:
93257 1 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...
result:
ok correct
Test #20:
score: 0
Accepted
time: 5ms
memory: 3688kb
input:
3532462
output:
62031 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 1 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101...
result:
ok correct
Test #21:
score: 0
Accepted
time: 7ms
memory: 3636kb
input:
54389236
output:
83693 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...
result:
ok correct
Test #22:
score: 0
Accepted
time: 7ms
memory: 3632kb
input:
93453967
output:
82906 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...
result:
ok correct
Test #23:
score: 0
Accepted
time: 9ms
memory: 3568kb
input:
1000000000
output:
92501 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...
result:
ok correct
Test #24:
score: 0
Accepted
time: 2ms
memory: 3632kb
input:
999999999
output:
89 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 29 32 28 34 27 36 26 38 25 40 24 42 23 44 22 46 21 48 20 50 19 52 18 54 17 56 16 58 15 60 14 62 13 64 12 66 11 68 10 70 9 72 8 74 7 76 6 78 5 80 4 82 3 84 2 86 1 88 30 29 28 27 26 25 24 23 22 22 21 19 19 18 16 15 15 ...
result:
ok correct
Test #25:
score: 0
Accepted
time: 4ms
memory: 3568kb
input:
888888888
output:
89 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 29 32 28 34 27 36 26 38 25 40 24 42 23 44 22 46 21 48 20 50 19 52 18 54 17 56 16 58 15 60 14 62 13 64 12 66 11 68 10 70 9 72 8 74 7 76 6 78 5 80 4 82 3 84 2 86 1 88 31 30 29 27 26 25 25 24 23 21 20 19 18 18 16 16 14 ...
result:
ok correct
Test #26:
score: 0
Accepted
time: 9ms
memory: 3632kb
input:
333333334
output:
88482 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...
result:
ok correct
Test #27:
score: 0
Accepted
time: 6ms
memory: 3708kb
input:
83495645
output:
80496 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...
result:
ok correct
Test #28:
score: 0
Accepted
time: 18ms
memory: 3596kb
input:
894567865
output:
91067 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...
result:
ok correct
Test #29:
score: 0
Accepted
time: 5ms
memory: 3632kb
input:
88479456
output:
57409 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...
result:
ok correct
Test #30:
score: 0
Accepted
time: 7ms
memory: 3632kb
input:
1000000
output:
90921 1 2 3 4 5 6 7 8 9 10 11 1 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101...
result:
ok correct
Test #31:
score: 0
Accepted
time: 7ms
memory: 3696kb
input:
429085001
output:
90818 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...
result:
ok correct
Test #32:
score: 0
Accepted
time: 4ms
memory: 3636kb
input:
882138811
output:
89 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 29 32 28 34 27 36 26 38 25 40 24 42 23 44 22 46 21 48 20 50 19 52 18 54 17 56 16 58 15 60 14 62 13 64 12 66 11 68 10 70 9 72 8 74 7 76 6 78 5 80 4 82 3 84 2 86 1 88 30 29 29 27 26 25 25 23 23 21 20 19 18 18 16 16 15 ...
result:
ok correct
Test #33:
score: 0
Accepted
time: 2ms
memory: 3576kb
input:
513157691
output:
86 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 28 31 27 33 26 35 25 37 24 39 23 41 22 43 21 45 20 47 19 49 18 51 17 53 16 55 15 57 14 59 13 61 12 63 11 65 10 67 9 69 8 71 7 73 6 75 5 77 4 79 3 81 2 83 1 85 29 28 28 26 25 24 24 23 22 20 20 18 18 16 16 15 14 12 11 11 ...
result:
ok correct
Test #34:
score: 0
Accepted
time: 3ms
memory: 3576kb
input:
813900859
output:
93410 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...
result:
ok correct
Test #35:
score: 0
Accepted
time: 5ms
memory: 3692kb
input:
454848871
output:
93552 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...
result:
ok correct
Test #36:
score: 0
Accepted
time: 4ms
memory: 3692kb
input:
151401319
output:
80 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 26 29 25 31 24 33 23 35 22 37 21 39 20 41 19 43 18 45 17 47 16 49 15 51 14 53 13 55 12 57 11 59 10 61 9 63 8 65 7 67 6 69 5 71 4 73 3 75 2 77 1 79 27 26 25 25 24 22 21 21 19 18 18 17 15 14 14 13 12 10 9 9 8 7 6 5 3 3 1 1 1 1 ...
result:
ok correct
Test #37:
score: 0
Accepted
time: 2ms
memory: 3640kb
input:
280898521
output:
83 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 27 30 26 32 25 34 24 36 23 38 22 40 21 42 20 44 19 46 18 48 17 50 16 52 15 54 14 56 13 58 12 60 11 62 10 64 9 66 8 68 7 70 6 72 5 74 4 76 3 78 2 80 1 82 28 28 27 25 24 24 22 21 20 19 19 17 17 15 15 14 13 11 10 9 8 7 7 5 5 ...
result:
ok correct
Test #38:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
412968047
output:
49226 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...
result:
ok correct
Extra Test:
score: 0
Extra Test Passed