QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#588900 | #6774. Ancient Machine 2 | Kevin5307 | 98 | 31ms | 4384kb | C++20 | 2.0kb | 2024-09-25 15:07:57 | 2024-09-25 15:07:57 |
Judging History
answer
//Author: Kevin
#include<bits/stdc++.h>
#include"ancient2.h"
//#pragma GCC optimize("O2")
using namespace std;
#define ll long long
#define ull unsigned ll
#define pb emplace_back
#define mp make_pair
#define ALL(x) (x).begin(),(x).end()
#define rALL(x) (x).rbegin(),(x).rend()
#define srt(x) sort(ALL(x))
#define rev(x) reverse(ALL(x))
#define rsrt(x) sort(rALL(x))
#define sz(x) (int)(x.size())
#define inf 0x3f3f3f3f
#define pii pair<int,int>
#define lb(v,x) (int)(lower_bound(ALL(v),x)-v.begin())
#define ub(v,x) (int)(upper_bound(ALL(v),x)-v.begin())
#define uni(v) v.resize(unique(ALL(v))-v.begin())
#define longer __int128_t
void die(string S){puts(S.c_str());exit(0);}
const int n=1000;
bitset<1005> bs[1005],bs2[1005];
bool ins(bitset<1005> b)
{
for(int i=0;i<n;i++)
if(b[i])
{
if(!bs[i][i])
{
bs[i]=b;
return true;
}
b^=bs[i];
}
return false;
}
int query(int N,int x,int y)
{
int M=x*2;
vector<int> A(M),B(M);
for(int i=0;i<x;i++)
for(int j=0;j<2;j++)
{
A[i*2+j]=((i+1)%x*2+j);
if(i==y)
B[i*2+j]=((i+1)%x*2+1-j);
else
B[i*2+j]=((i+1)%x*2+j);
}
return Query(M,A,B)&1;
}
string Solve(int N)
{
const int Lim=102;
int tot=0;
for(int i=0;i+3<=Lim;i++)
{
int M=i+3;
vector<int> A(M),B(M);
for(int j=0;j<i;j++)
A[j]=B[j]=j+1;
A[i]=i+1;
B[i]=i+2;
A[i+1]=B[i+1]=i+1;
A[i+2]=B[i+2]=i+2;
int node=Query(M,A,B);
bitset<1005> b;
b[i]=bs2[tot][i]=1;
ins(b);
bs2[tot++][N]=(node==i+2);
}
for(int i=1;i<=N&&tot<N;i++)
for(int j=0;j<i&&tot<N;j++)
{
bitset<1005> b;
for(int k=0;k<N;k++)
if(k%i==j)
b[k]=1;
if(ins(b))
{
bs2[tot]=b;
bs2[tot++][N]=query(N,i,j);
}
}
for(int i=0;i<N;i++)
{
if(!bs2[i][i])
{
for(int j=i+1;j<N;j++)
if(bs2[j][i])
{
swap(bs2[i],bs2[j]);
break;
}
}
for(int j=0;j<N;j++)
if(i!=j&&bs2[j][i])
bs2[j]^=bs2[i];
}
string ret;
for(int i=0;i<N;i++)
ret+=(char)('0'+bs2[i][N]);
return ret;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 98
Acceptable Answer
Test #1:
score: 98
Acceptable Answer
time: 31ms
memory: 4052kb
input:
1000 2 3 4 5 6 7 8 9 10 11 12 13 14 14 16 16 18 18 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 39 40 41 42 43 44 45 46 47 48 50 51 52 53 53 55 55 57 57 59 59 61 61 62 64 64 65 66 67 68 69 70 71 72 74 75 76 77 78 79 79 80 81 82 83 84 85 86 87 89 89 90 91 92 93 94 95 97 98 99 100 100 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #2:
score: 98
Acceptable Answer
time: 21ms
memory: 4076kb
input:
1000 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 28 29 30 31 32 33 34 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 54 56 56 58 58 60 60 62 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 79 79 81 81 83 83 84 85 86 87 88 89 90 91 92 93 95 96 97 97 98 99 100 0 ...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #3:
score: 98
Acceptable Answer
time: 18ms
memory: 4096kb
input:
1000 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 1 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #4:
score: 98
Acceptable Answer
time: 26ms
memory: 4376kb
input:
1000 2 2 4 4 6 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 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 98 99 100 101 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #5:
score: 98
Acceptable Answer
time: 21ms
memory: 4116kb
input:
1000 2 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 41 41 43 43 45 45 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 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #6:
score: 98
Acceptable Answer
time: 14ms
memory: 4084kb
input:
1000 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 0 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #7:
score: 98
Acceptable Answer
time: 25ms
memory: 4080kb
input:
1000 2 3 4 5 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 98 100 100 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #8:
score: 98
Acceptable Answer
time: 14ms
memory: 4076kb
input:
1000 2 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 98 100 100 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #9:
score: 98
Acceptable Answer
time: 25ms
memory: 4100kb
input:
1000 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 1 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #10:
score: 98
Acceptable Answer
time: 19ms
memory: 4084kb
input:
1000 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 101 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #11:
score: 98
Acceptable Answer
time: 18ms
memory: 4080kb
input:
1000 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 0 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #12:
score: 98
Acceptable Answer
time: 25ms
memory: 4072kb
input:
1000 2 3 4 5 6 7 8 9 10 11 11 13 14 15 16 16 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 47 49 50 51 52 52 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 100 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #13:
score: 98
Acceptable Answer
time: 15ms
memory: 4380kb
input:
1000 1 2 3 4 5 6 8 8 9 10 11 12 13 14 16 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 57 57 58 59 60 61 63 63 64 65 66 67 68 69 70 71 73 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 92 92 94 94 95 96 97 98 99 100 0 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #14:
score: 98
Acceptable Answer
time: 24ms
memory: 4080kb
input:
1000 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 16 18 19 20 21 22 23 23 25 26 27 28 29 30 31 32 33 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #15:
score: 98
Acceptable Answer
time: 20ms
memory: 4336kb
input:
1000 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 65 66 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 87 87 88 89 90 91 92 93 94 95 96 97 98 99 100 1 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #16:
score: 98
Acceptable Answer
time: 18ms
memory: 4376kb
input:
1000 2 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 98 100 100 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #17:
score: 98
Acceptable Answer
time: 15ms
memory: 4340kb
input:
1000 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 0 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #18:
score: 98
Acceptable Answer
time: 12ms
memory: 4096kb
input:
1000 2 2 4 4 6 6 8 8 10 10 12 12 13 14 16 16 18 18 20 20 22 22 24 24 25 26 28 28 30 30 32 32 34 34 36 37 38 38 40 40 42 42 44 44 46 46 48 48 50 50 52 52 54 54 56 56 58 58 60 60 61 62 64 64 66 66 68 68 70 70 72 72 73 74 76 76 78 79 80 80 82 82 84 84 86 86 87 88 90 91 92 92 94 94 96 96 98 98 100 100 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #19:
score: 98
Acceptable Answer
time: 20ms
memory: 4056kb
input:
1000 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 38 39 41 41 43 43 45 45 47 47 49 49 50 52 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 80 81 83 83 84 85 87 87 89 89 91 91 93 93 95 95 97 97 99 99 101 1 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #20:
score: 98
Acceptable Answer
time: 25ms
memory: 4080kb
input:
1000 2 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 98 100 100 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #21:
score: 98
Acceptable Answer
time: 24ms
memory: 4084kb
input:
1000 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 32 33 35 35 36 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 82 83 83 85 85 87 87 89 89 91 91 93 93 95 95 97 97 99 99 101 1 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #22:
score: 98
Acceptable Answer
time: 23ms
memory: 4028kb
input:
1000 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 53 55 56 57 57 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #23:
score: 98
Acceptable Answer
time: 17ms
memory: 4084kb
input:
1000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 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 65 65 66 67 68 69 70 72 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 92 94 94 95 96 97 98 99 100 1 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #24:
score: 98
Acceptable Answer
time: 19ms
memory: 4052kb
input:
1000 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 30 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 73 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 93 95 96 97 98 99 100 101 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #25:
score: 98
Acceptable Answer
time: 14ms
memory: 4148kb
input:
1000 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 31 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 60 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 1 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #26:
score: 98
Acceptable Answer
time: 29ms
memory: 4372kb
input:
1000 1 2 3 4 5 7 8 9 9 10 12 13 13 15 16 17 18 19 20 21 22 23 23 24 25 26 28 29 30 31 32 32 33 35 36 36 37 38 40 41 42 43 44 44 46 47 48 48 49 51 51 52 53 55 55 57 58 58 60 60 61 62 64 65 66 66 68 69 69 71 72 73 74 74 76 76 77 78 79 80 81 82 83 84 85 86 87 89 89 91 91 93 93 95 96 97 97 98 99 101 1 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #27:
score: 98
Acceptable Answer
time: 23ms
memory: 4144kb
input:
1000 1 2 3 4 6 7 7 8 10 10 11 12 13 14 15 17 17 19 20 21 22 23 23 25 26 27 28 29 29 30 31 32 33 35 36 37 38 39 39 40 41 43 43 45 45 47 47 48 50 51 52 52 53 55 56 57 57 58 59 61 62 62 63 65 66 67 67 69 70 71 72 73 74 75 76 76 78 79 79 81 82 83 84 84 85 87 88 89 89 91 92 93 94 94 96 97 98 98 99 101 0 ...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #28:
score: 98
Acceptable Answer
time: 23ms
memory: 4028kb
input:
1000 1 3 4 4 5 6 8 8 9 10 11 12 13 14 16 17 18 18 20 20 21 22 24 24 25 26 27 29 29 30 32 32 33 34 35 36 38 38 39 41 42 42 43 44 46 47 47 48 50 51 52 53 53 55 56 57 57 59 59 60 61 62 64 64 65 67 68 69 69 70 71 72 73 75 76 76 78 79 80 80 82 83 83 85 85 86 88 88 89 91 91 92 93 95 95 97 97 99 100 101 1 ...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #29:
score: 98
Acceptable Answer
time: 19ms
memory: 4344kb
input:
1000 1 2 4 5 6 7 7 8 10 11 12 12 14 14 16 17 18 19 19 20 21 22 23 24 26 27 28 28 29 31 32 33 34 35 35 37 38 39 40 40 41 42 44 45 45 47 48 48 49 51 51 52 54 54 56 56 58 59 60 60 62 62 64 64 65 67 67 69 70 71 71 72 74 74 76 77 77 79 79 80 81 82 83 85 86 87 88 89 89 90 91 92 94 94 96 97 98 99 99 101 0 ...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #30:
score: 98
Acceptable Answer
time: 20ms
memory: 4372kb
input:
1000 2 2 3 5 5 6 7 8 9 11 12 13 14 15 15 16 17 18 19 21 22 23 24 24 25 26 27 28 30 31 32 33 33 35 36 37 37 38 40 41 42 43 43 44 45 47 48 49 49 50 51 52 54 55 56 57 58 59 59 60 61 62 63 65 66 67 68 69 69 71 72 73 74 75 75 77 78 79 80 80 81 83 83 84 85 86 87 88 90 91 92 93 94 95 95 96 97 98 99 101 0 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #31:
score: 98
Acceptable Answer
time: 21ms
memory: 4084kb
input:
1000 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 16 17 19 20 20 21 22 24 25 26 27 28 29 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 56 57 58 60 61 62 63 64 65 66 67 67 68 69 70 71 72 73 74 75 76 78 79 80 81 82 83 84 85 86 86 87 88 89 90 91 92 93 94 95 96 97 99 100 101 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #32:
score: 98
Acceptable Answer
time: 19ms
memory: 4384kb
input:
1000 2 3 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #33:
score: 98
Acceptable Answer
time: 24ms
memory: 4368kb
input:
1000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 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 49 50 51 52 53 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 0 ...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #34:
score: 98
Acceptable Answer
time: 19ms
memory: 4084kb
input:
1000 1 2 4 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 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 0 ...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #35:
score: 98
Acceptable Answer
time: 27ms
memory: 4080kb
input:
1000 1 2 4 4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 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 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 98 99 100 0 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #36:
score: 98
Acceptable Answer
time: 24ms
memory: 4376kb
input:
1000 2 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 86 87 88 89 90 91 92 93 94 94 95 96 97 98 99 100 0 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #37:
score: 98
Acceptable Answer
time: 26ms
memory: 4380kb
input:
1000 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 101 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #38:
score: 98
Acceptable Answer
time: 19ms
memory: 4116kb
input:
1000 2 3 3 5 6 7 8 8 10 10 12 12 13 14 16 16 17 18 19 21 22 22 24 25 25 26 28 29 30 31 31 33 33 34 36 36 38 39 39 41 41 42 44 44 46 46 47 49 50 51 51 53 54 54 56 56 57 59 60 60 61 62 63 64 66 67 68 69 70 71 71 73 73 75 76 76 77 79 79 81 81 83 84 84 86 86 88 89 90 90 91 92 93 94 95 96 97 98 100 100 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #39:
score: 98
Acceptable Answer
time: 18ms
memory: 4368kb
input:
1000 2 2 3 4 5 6 7 8 10 11 11 12 13 15 15 16 17 18 19 20 21 23 23 25 25 26 27 28 29 31 31 33 34 35 35 36 38 39 39 40 42 42 44 45 46 46 47 48 50 51 52 52 54 55 56 56 58 58 60 60 61 62 63 64 65 67 67 69 70 71 71 72 74 74 75 77 77 79 79 80 81 83 84 84 85 86 88 89 90 91 91 92 94 95 96 96 98 99 99 100 0 ...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #40:
score: 98
Acceptable Answer
time: 20ms
memory: 4340kb
input:
1000 2 2 3 5 6 7 7 8 10 10 12 12 13 14 16 16 17 19 19 20 22 23 24 25 26 27 28 29 30 30 31 33 33 35 36 37 37 39 40 40 42 42 43 45 45 47 48 48 50 51 52 52 53 55 56 56 58 58 59 60 62 63 64 65 66 66 68 69 70 70 71 73 74 75 75 77 78 79 80 81 82 83 84 85 86 86 88 89 89 90 92 93 93 94 96 97 98 98 99 100 0 ...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #41:
score: 98
Acceptable Answer
time: 21ms
memory: 3984kb
input:
1000 1 2 3 5 6 6 7 9 10 11 12 12 13 15 16 16 18 18 19 21 21 23 23 24 26 27 28 29 29 31 31 33 34 35 36 36 38 38 40 40 41 42 43 45 45 46 48 48 49 50 51 52 54 54 56 57 58 59 60 61 62 62 63 65 65 67 68 68 69 70 72 73 74 74 75 76 78 78 79 80 81 82 84 84 86 86 87 88 89 90 91 93 94 95 96 96 97 99 100 100 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #42:
score: 98
Acceptable Answer
time: 20ms
memory: 4084kb
input:
1000 2 2 3 5 6 6 7 9 9 10 11 13 13 15 16 16 18 19 20 20 21 22 24 24 26 27 28 29 29 30 32 33 33 35 36 37 37 38 39 40 42 43 44 44 46 46 47 48 50 51 51 53 53 54 55 56 57 58 60 61 62 62 63 64 66 67 68 68 70 70 72 72 73 74 76 77 78 79 80 81 82 82 84 84 86 87 88 89 90 90 91 93 94 95 96 97 98 98 100 101 0 ...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #43:
score: 98
Acceptable Answer
time: 27ms
memory: 4372kb
input:
1000 2 3 3 4 6 7 8 8 10 10 12 13 13 14 16 17 17 19 19 21 22 22 23 24 26 27 28 28 30 31 31 33 34 35 35 36 38 38 39 41 42 43 43 44 45 46 47 48 50 50 52 53 54 54 56 57 57 59 60 60 61 62 63 65 66 67 68 68 70 70 71 73 74 75 76 76 78 79 80 80 82 83 83 84 86 87 87 89 90 91 92 93 94 95 96 96 97 98 100 100 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #44:
score: 98
Acceptable Answer
time: 22ms
memory: 4368kb
input:
1000 1 2 3 5 6 6 8 9 10 11 11 12 13 14 16 17 17 19 20 21 22 23 23 24 26 27 27 29 30 31 32 32 34 35 35 37 38 38 40 40 41 42 44 44 46 47 47 48 50 51 52 52 54 55 55 56 57 58 59 61 62 62 63 64 66 66 68 69 70 71 72 72 73 74 76 77 78 78 80 81 82 82 83 85 86 87 88 89 89 90 92 92 93 95 95 96 98 98 99 100 0 ...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #45:
score: 98
Acceptable Answer
time: 19ms
memory: 4068kb
input:
1000 2 2 3 5 5 7 8 9 9 10 11 12 13 15 15 17 18 19 20 21 21 22 24 25 25 26 28 28 29 31 32 33 34 34 35 36 37 39 40 41 41 43 43 44 46 47 47 49 49 51 52 52 54 55 55 56 58 58 60 61 62 63 64 65 65 66 67 68 69 70 72 72 74 74 75 77 77 78 79 80 81 83 83 85 85 87 87 88 90 90 91 93 93 95 96 97 98 98 100 101 0 ...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #46:
score: 98
Acceptable Answer
time: 26ms
memory: 4092kb
input:
1000 2 3 3 5 5 6 7 8 9 11 12 12 13 15 16 16 18 19 20 20 22 22 24 25 25 26 28 29 29 30 32 32 34 35 35 36 37 38 39 41 41 43 44 45 45 46 48 48 50 50 52 52 53 55 55 56 57 58 59 61 62 63 63 64 65 66 68 69 70 70 72 72 74 75 75 77 78 79 79 81 82 82 83 85 85 86 88 88 90 91 91 92 94 95 95 97 97 98 100 101 1 ...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #47:
score: 98
Acceptable Answer
time: 23ms
memory: 4112kb
input:
1000 2 2 3 5 5 7 7 8 9 11 12 12 13 15 16 16 18 18 19 21 22 23 23 25 26 27 28 29 29 30 31 32 33 35 36 37 37 39 39 40 41 43 44 45 46 46 48 48 49 50 52 52 54 54 56 57 58 59 59 61 61 63 64 65 66 67 68 68 69 70 71 72 74 75 76 77 77 79 79 80 82 82 83 85 85 87 87 89 90 91 92 93 93 95 95 97 98 99 99 101 1 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #48:
score: 98
Acceptable Answer
time: 19ms
memory: 4120kb
input:
1000 2 3 3 4 5 7 7 8 10 11 11 13 14 15 16 16 18 19 20 21 21 23 24 25 25 27 27 28 29 31 31 32 34 34 36 36 37 39 39 40 41 43 44 45 46 47 47 49 50 50 52 53 53 54 56 57 57 58 59 60 62 63 64 64 65 67 68 69 69 71 72 73 74 74 76 76 78 78 80 80 81 83 84 85 85 86 88 89 89 91 91 93 93 94 95 97 98 99 99 100 1 ...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #49:
score: 98
Acceptable Answer
time: 17ms
memory: 4308kb
input:
1000 1 2 3 5 5 6 8 8 10 11 12 13 14 14 15 17 17 18 19 20 22 23 23 25 25 27 28 29 29 30 31 33 34 34 36 36 38 38 40 40 42 42 43 44 46 46 48 48 49 51 51 53 54 55 55 56 58 59 60 60 61 63 64 64 65 67 67 68 70 70 72 73 74 75 76 76 78 78 80 81 81 82 84 84 85 87 87 89 89 90 92 93 94 95 95 96 98 98 100 100 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #50:
score: 98
Acceptable Answer
time: 15ms
memory: 4140kb
input:
1000 1 3 3 4 5 6 7 8 10 11 11 12 14 14 15 16 17 18 20 20 21 23 24 24 26 26 28 29 30 30 31 32 33 34 35 36 37 38 39 40 42 43 44 45 46 46 47 48 50 51 51 52 54 55 56 56 58 59 60 61 62 62 63 65 66 66 67 69 69 71 71 73 74 75 76 77 77 79 80 81 81 83 84 85 85 86 87 89 90 91 92 93 93 95 96 97 98 99 99 101 0 ...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #51:
score: 98
Acceptable Answer
time: 24ms
memory: 4028kb
input:
1000 1 2 4 5 5 6 8 9 10 10 11 13 13 14 16 17 17 19 20 20 22 23 23 25 26 27 28 28 29 30 31 33 34 35 35 36 37 39 40 40 41 42 43 44 45 47 48 49 49 51 52 53 53 55 56 57 58 59 60 61 62 62 64 64 66 66 67 69 70 71 71 73 73 74 75 77 78 78 79 80 82 82 84 84 86 87 87 88 90 90 91 93 93 95 96 97 98 98 100 100 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #52:
score: 98
Acceptable Answer
time: 24ms
memory: 4076kb
input:
1000 2 3 3 4 6 6 7 9 10 11 11 13 14 15 15 17 18 18 20 21 22 23 24 25 25 27 27 28 30 30 31 32 33 35 36 36 38 39 39 41 42 43 44 45 46 46 47 49 49 50 52 52 53 54 55 56 58 59 59 61 61 63 64 65 65 67 67 69 69 71 72 73 74 74 75 77 77 79 79 81 81 83 83 84 85 87 87 88 90 91 92 93 94 94 96 97 98 98 99 101 0 ...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #53:
score: 98
Acceptable Answer
time: 20ms
memory: 4056kb
input:
1000 1 2 3 5 5 6 7 9 9 11 12 12 14 15 16 17 17 18 20 20 22 23 24 25 26 27 28 29 30 30 32 32 33 35 35 36 38 38 39 40 41 43 43 44 46 47 48 49 50 51 52 53 54 54 55 56 58 58 60 60 61 63 64 65 66 66 67 68 69 71 72 72 73 74 75 76 78 79 80 80 82 83 84 84 86 86 88 88 90 90 92 93 93 95 95 97 98 98 99 100 0 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #54:
score: 98
Acceptable Answer
time: 18ms
memory: 4080kb
input:
1000 2 3 3 5 5 6 7 9 9 11 12 12 14 15 15 16 18 18 19 21 21 22 23 24 25 26 27 28 30 30 31 32 34 35 36 36 37 39 39 40 41 43 44 44 46 47 48 49 50 51 52 52 54 55 55 57 57 59 60 61 62 63 63 65 66 67 68 69 69 70 71 73 73 74 76 77 78 78 79 81 82 83 83 85 86 86 88 88 90 91 91 93 93 94 96 96 98 99 99 101 0 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #55:
score: 98
Acceptable Answer
time: 18ms
memory: 4084kb
input:
1000 1 3 4 4 6 7 7 9 9 11 11 12 14 14 15 16 18 18 19 20 21 22 23 24 26 26 27 29 30 30 32 32 33 34 35 37 38 39 40 40 42 42 43 45 45 47 48 49 50 50 52 53 54 54 56 57 58 59 60 61 62 63 64 64 65 67 68 69 70 70 71 72 73 75 76 77 77 78 80 80 81 83 84 84 85 86 87 89 90 91 92 92 94 94 95 97 97 98 99 101 1 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #56:
score: 98
Acceptable Answer
time: 20ms
memory: 4344kb
input:
1000 1 3 4 4 5 7 8 9 10 11 12 13 13 14 15 17 18 19 19 21 21 22 24 25 25 26 27 28 29 30 32 33 34 34 36 37 37 38 40 40 42 42 43 45 45 46 47 48 50 51 51 52 53 54 56 56 58 59 59 60 61 63 64 65 66 67 68 69 69 70 72 72 74 75 76 77 77 79 80 80 81 82 83 85 85 87 87 88 89 91 92 93 94 95 95 97 97 99 100 100 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #57:
score: 98
Acceptable Answer
time: 25ms
memory: 4084kb
input:
1000 2 3 4 5 6 7 8 9 10 11 11 13 14 15 16 17 18 19 19 20 21 23 24 24 26 27 28 29 29 31 32 33 34 35 36 37 38 39 40 41 41 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 77 79 80 81 82 83 84 85 85 87 88 89 89 91 92 93 94 95 96 97 97 99 100 101 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #58:
score: 98
Acceptable Answer
time: 21ms
memory: 4084kb
input:
1000 1 3 4 5 6 7 8 9 9 11 11 13 14 14 16 17 18 19 19 21 22 23 24 25 26 27 27 28 30 31 31 33 34 35 36 37 38 39 40 41 41 42 44 45 45 47 48 49 50 51 52 52 54 55 56 57 58 59 60 60 62 62 64 65 66 66 68 69 69 71 72 73 74 75 75 77 78 79 80 80 81 83 83 85 86 87 87 89 89 91 92 93 94 95 96 97 98 98 99 101 1 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #59:
score: 98
Acceptable Answer
time: 24ms
memory: 4084kb
input:
1000 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 23 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 55 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 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #60:
score: 98
Acceptable Answer
time: 17ms
memory: 4088kb
input:
1000 1 2 3 4 5 6 7 8 9 10 11 12 14 14 15 16 17 18 19 20 21 22 23 25 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 47 49 49 50 51 53 53 54 55 56 58 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 90 90 91 92 93 94 95 96 97 98 99 100 0 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #61:
score: 98
Acceptable Answer
time: 20ms
memory: 4120kb
input:
1000 2 3 3 5 6 7 7 9 10 11 12 13 14 15 16 17 17 19 20 21 22 23 24 25 25 27 28 28 30 31 32 33 33 35 35 37 37 39 40 41 42 42 43 44 46 47 48 49 49 50 52 52 54 55 56 57 57 58 60 61 61 63 64 65 65 67 68 69 70 71 72 73 73 75 76 77 78 79 80 80 82 83 84 85 86 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #62:
score: 98
Acceptable Answer
time: 25ms
memory: 4116kb
input:
1000 2 3 4 5 6 6 7 8 10 11 12 12 14 15 15 17 18 19 20 20 22 22 23 24 26 27 28 29 30 31 32 33 33 35 35 36 37 39 39 40 41 42 44 45 46 47 47 48 50 51 51 53 54 55 55 57 58 59 59 61 62 62 63 65 66 67 67 69 70 70 71 73 73 75 75 76 78 78 79 81 81 82 84 84 86 87 87 88 90 91 92 92 94 95 95 97 97 98 100 101 1...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)
Test #63:
score: 98
Acceptable Answer
time: 16ms
memory: 4084kb
input:
1000 2 3 4 5 5 6 7 9 9 11 12 13 14 14 16 17 18 19 20 21 21 23 23 24 26 27 27 29 29 31 32 33 34 35 36 37 37 39 39 41 42 43 43 45 46 47 48 49 50 51 52 52 53 55 56 57 57 59 59 61 61 63 64 65 66 66 68 68 70 71 71 73 74 75 76 76 78 79 79 81 82 82 84 85 86 87 87 89 89 91 92 93 93 95 96 97 98 99 99 100 1 0...
output:
Q 3 1 1 2 2 1 2 Q 4 1 2 2 3 1 3 2 3 Q 5 1 2 3 3 4 1 2 4 3 4 Q 6 1 2 3 4 4 5 1 2 3 5 4 5 Q 7 1 2 3 4 5 5 6 1 2 3 4 6 5 6 Q 8 1 2 3 4 5 6 6 7 1 2 3 4 5 7 6 7 Q 9 1 2 3 4 5 6 7 7 8 1 2 3 4 5 6 8 7 8 Q 10 1 2 3 4 5 6 7 8 8 9 1 2 3 4 5 6 7 9 8 9 Q 11 1 2 3 4 5 6 7 8 9 9 10 1 2 3 4 5 6 7 8 10 9 10 Q 12 1 ...
result:
points 0.980 points 0.980 Accepted (partial scores)