QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#943454 | #4923. 整数 | zbrc | 40 | 1001ms | 105844kb | C++14 | 1.1kb | 2025-03-19 21:00:41 | 2025-03-19 21:00:48 |
Judging History
answer
#include<bits/stdc++.h>
#include "integer.h"
using namespace std;
const int N=5e3+10;
vector<int>ans;
int pre[N][N],p[N],a[N],suf[N];
int operate(const int i);
vector<int> findPermutation(int n){
srand(time(0));
int T=50;
for(int i=1;i<=n;i++)operate(i-1),p[i]=i;
for(int i=1;i<=n;i++)for(int j=1;j<=n;j++)if(i!=j)pre[i][j]=1;
int lst=n,pos=0;
for(int i=1;i<=n;i++){
int x=operate(i-1);
if(x<=lst){pos=i;}
lst=x;
}
operate(pos-1);
operate(pos-1);
while(T-->0){
random_shuffle(p+1,p+1+n);
for(int i=1;i<=n;i++){
int x=operate(p[i]-1),y=operate(p[i]-1);
if(y>x){
for(int j=i+1;j<=n;j++)pre[p[i]][p[j]]=0;
}else{
for(int j=1;j<i;j++)pre[p[i]][p[j]]=0;
}
}
operate(pos-1);operate(pos-1);
}
for(int i=1;i<=n;i++)for(int j=1;j<=n;j++)if(pre[i][j])suf[j]=i;
int cnt=0,X=pos;
while(X)a[X]=cnt++,X=suf[X];
for(int i=1;i<=n;i++)ans.push_back(a[i]);
return ans;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 0ms
memory: 5968kb
input:
1 0
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 204 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 204 operation(s): scoring 1.000
Test #2:
score: 5
Accepted
time: 1ms
memory: 6092kb
input:
3 0 2 1
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 408 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 408 operation(s): scoring 1.000
Test #3:
score: 5
Accepted
time: 0ms
memory: 5968kb
input:
3 0 2 1
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 408 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 408 operation(s): scoring 1.000
Test #4:
score: 5
Accepted
time: 0ms
memory: 6100kb
input:
10 0 2 8 9 1 5 6 3 4 7
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1122 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1122 operation(s): scoring 1.000
Test #5:
score: 5
Accepted
time: 1ms
memory: 6092kb
input:
10 1 8 3 2 6 0 7 9 5 4
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1122 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1122 operation(s): scoring 1.000
Test #6:
score: 5
Accepted
time: 0ms
memory: 5968kb
input:
10 9 7 0 8 3 5 2 6 1 4
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1122 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1122 operation(s): scoring 1.000
Test #7:
score: 5
Accepted
time: 1ms
memory: 6096kb
input:
10 0 1 2 3 4 5 6 7 8 9
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1122 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1122 operation(s): scoring 1.000
Test #8:
score: 5
Accepted
time: 0ms
memory: 5900kb
input:
10 9 8 7 6 5 4 3 2 1 0
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1122 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1122 operation(s): scoring 1.000
Test #9:
score: 5
Accepted
time: 0ms
memory: 6096kb
input:
2 0 1
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 306 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 306 operation(s): scoring 1.000
Test #10:
score: 5
Accepted
time: 0ms
memory: 5964kb
input:
2 1 0
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 306 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 306 operation(s): scoring 1.000
Test #11:
score: 5
Accepted
time: 0ms
memory: 6096kb
input:
4 2 3 0 1
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 510 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 510 operation(s): scoring 1.000
Test #12:
score: 5
Accepted
time: 0ms
memory: 5968kb
input:
4 1 2 0 3
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 510 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 510 operation(s): scoring 1.000
Test #13:
score: 5
Accepted
time: 0ms
memory: 5968kb
input:
4 1 3 0 2
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 510 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 510 operation(s): scoring 1.000
Test #14:
score: 5
Accepted
time: 0ms
memory: 5968kb
input:
5 0 3 4 2 1
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 612 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 612 operation(s): scoring 1.000
Test #15:
score: 5
Accepted
time: 1ms
memory: 6096kb
input:
5 0 2 3 4 1
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 612 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 612 operation(s): scoring 1.000
Test #16:
score: 5
Accepted
time: 0ms
memory: 5972kb
input:
5 3 0 2 4 1
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 612 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 612 operation(s): scoring 1.000
Test #17:
score: 5
Accepted
time: 0ms
memory: 6092kb
input:
5 1 4 3 2 0
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 612 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 612 operation(s): scoring 1.000
Test #18:
score: 5
Accepted
time: 0ms
memory: 5932kb
input:
5 3 4 2 0 1
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 612 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 612 operation(s): scoring 1.000
Test #19:
score: 5
Accepted
time: 1ms
memory: 5972kb
input:
5 0 1 2 3 4
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 612 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 612 operation(s): scoring 1.000
Test #20:
score: 5
Accepted
time: 0ms
memory: 5920kb
input:
5 4 3 2 1 0
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 612 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 612 operation(s): scoring 1.000
Test #21:
score: 5
Accepted
time: 1ms
memory: 6100kb
input:
6 2 4 5 3 1 0
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 714 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 714 operation(s): scoring 1.000
Test #22:
score: 5
Accepted
time: 0ms
memory: 5968kb
input:
6 4 5 0 2 1 3
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 714 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 714 operation(s): scoring 1.000
Test #23:
score: 5
Accepted
time: 0ms
memory: 5968kb
input:
6 5 0 2 3 1 4
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 714 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 714 operation(s): scoring 1.000
Test #24:
score: 5
Accepted
time: 1ms
memory: 6096kb
input:
6 4 3 2 1 0 5
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 714 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 714 operation(s): scoring 1.000
Test #25:
score: 5
Accepted
time: 1ms
memory: 5876kb
input:
6 0 1 2 3 4 5
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 714 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 714 operation(s): scoring 1.000
Test #26:
score: 5
Accepted
time: 0ms
memory: 6096kb
input:
7 0 6 4 2 3 5 1
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 816 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 816 operation(s): scoring 1.000
Test #27:
score: 5
Accepted
time: 0ms
memory: 5964kb
input:
7 3 0 5 4 1 6 2
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 816 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 816 operation(s): scoring 1.000
Test #28:
score: 5
Accepted
time: 1ms
memory: 5972kb
input:
7 0 6 3 2 1 4 5
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 816 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 816 operation(s): scoring 1.000
Test #29:
score: 5
Accepted
time: 0ms
memory: 5968kb
input:
7 0 1 2 3 4 5 6
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 816 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 816 operation(s): scoring 1.000
Test #30:
score: 5
Accepted
time: 0ms
memory: 8144kb
input:
7 6 5 4 3 2 1 0
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 816 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 816 operation(s): scoring 1.000
Test #31:
score: 5
Accepted
time: 0ms
memory: 5968kb
input:
8 0 1 2 3 4 5 6 7
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 918 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 918 operation(s): scoring 1.000
Test #32:
score: 5
Accepted
time: 0ms
memory: 5772kb
input:
9 0 1 2 3 4 5 6 7 8
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1020 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1020 operation(s): scoring 1.000
Test #33:
score: 5
Accepted
time: 0ms
memory: 8148kb
input:
8 7 6 5 4 3 2 1 0
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 918 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 918 operation(s): scoring 1.000
Test #34:
score: 5
Accepted
time: 0ms
memory: 6096kb
input:
9 8 7 6 5 4 3 2 1 0
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1020 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1020 operation(s): scoring 1.000
Test #35:
score: 5
Accepted
time: 0ms
memory: 5964kb
input:
8 5 3 2 1 6 7 0 4
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 918 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 918 operation(s): scoring 1.000
Test #36:
score: 5
Accepted
time: 0ms
memory: 5968kb
input:
8 6 0 3 4 2 7 1 5
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 918 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 918 operation(s): scoring 1.000
Test #37:
score: 5
Accepted
time: 0ms
memory: 5968kb
input:
9 2 5 4 8 6 0 3 1 7
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1020 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1020 operation(s): scoring 1.000
Test #38:
score: 5
Accepted
time: 0ms
memory: 6092kb
input:
9 6 0 4 2 7 3 5 8 1
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1020 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1020 operation(s): scoring 1.000
Test #39:
score: 5
Accepted
time: 0ms
memory: 5964kb
input:
9 2 6 4 0 5 7 1 3 8
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1020 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1020 operation(s): scoring 1.000
Test #40:
score: 5
Accepted
time: 1ms
memory: 6096kb
input:
10 0 7 2 8 5 9 6 3 4 1
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1122 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1122 operation(s): scoring 1.000
Test #41:
score: 5
Accepted
time: 1ms
memory: 5968kb
input:
10 0 9 1 8 6 7 4 3 5 2
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1122 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1122 operation(s): scoring 1.000
Test #42:
score: 5
Accepted
time: 0ms
memory: 6096kb
input:
10 0 7 4 5 8 6 1 3 9 2
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1122 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1122 operation(s): scoring 1.000
Subtask #2:
score: 10
Accepted
Dependency #1:
100%
Accepted
Test #43:
score: 10
Accepted
time: 0ms
memory: 8148kb
input:
70 44 64 19 37 17 65 8 53 6 36 3 30 35 24 34 60 29 56 18 45 1 51 13 23 41 28 49 50 9 21 54 68 27 46 32 57 43 25 67 63 52 47 15 20 58 16 42 39 11 7 4 31 38 69 26 33 2 59 40 66 55 22 0 12 10 48 62 14 5 61
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 7242 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 7242 operation(s): scoring 1.000
Test #44:
score: 10
Accepted
time: 0ms
memory: 7980kb
input:
70 0 30 46 54 34 42 60 23 31 65 11 58 20 3 14 12 40 44 29 10 22 5 50 4 52 49 21 38 53 24 41 37 28 32 59 6 61 9 19 25 35 69 33 64 55 27 17 36 2 67 26 51 8 56 48 43 13 62 63 16 1 15 68 45 39 47 66 18 7 57
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 7242 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 7242 operation(s): scoring 1.000
Test #45:
score: 10
Accepted
time: 1ms
memory: 6100kb
input:
11 4 9 10 1 0 8 7 3 6 5 2
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1224 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1224 operation(s): scoring 1.000
Test #46:
score: 10
Accepted
time: 0ms
memory: 5964kb
input:
14 13 3 9 11 2 6 0 5 10 1 12 8 4 7
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1530 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1530 operation(s): scoring 1.000
Test #47:
score: 10
Accepted
time: 0ms
memory: 8016kb
input:
45 34 32 14 35 18 3 1 42 25 8 37 44 31 15 21 39 0 29 30 40 9 17 10 33 5 4 20 12 38 36 6 23 27 16 41 19 43 2 11 24 22 13 26 28 7
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 4692 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 4692 operation(s): scoring 1.000
Test #48:
score: 10
Accepted
time: 1ms
memory: 8024kb
input:
51 14 15 16 46 1 25 35 0 19 24 8 49 29 44 11 38 23 34 28 4 40 6 9 17 22 5 36 41 13 47 27 45 33 10 48 2 30 32 39 20 50 31 43 7 42 26 21 12 18 37 3
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 5304 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 5304 operation(s): scoring 1.000
Test #49:
score: 10
Accepted
time: 0ms
memory: 6096kb
input:
14 5 0 9 2 8 6 10 1 3 7 13 4 12 11
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1530 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1530 operation(s): scoring 1.000
Test #50:
score: 10
Accepted
time: 0ms
memory: 6100kb
input:
20 9 11 1 18 7 12 19 3 0 4 17 5 14 8 16 6 10 2 15 13
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 2142 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 2142 operation(s): scoring 1.000
Test #51:
score: 10
Accepted
time: 0ms
memory: 5972kb
input:
30 19 4 15 13 22 14 3 5 28 10 26 20 7 2 16 27 11 8 9 12 6 25 24 29 21 17 1 0 18 23
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 3162 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 3162 operation(s): scoring 1.000
Test #52:
score: 10
Accepted
time: 0ms
memory: 8024kb
input:
40 11 17 35 10 16 28 12 1 7 3 18 21 31 14 20 0 33 2 32 15 4 13 27 29 5 38 19 37 39 25 30 36 23 8 26 34 9 24 22 6
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 4182 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 4182 operation(s): scoring 1.000
Test #53:
score: 10
Accepted
time: 0ms
memory: 8148kb
input:
50 32 1 29 42 19 37 26 10 49 28 5 3 12 0 40 47 9 33 8 21 31 16 24 34 6 7 36 46 45 15 2 20 27 48 4 13 23 30 17 41 38 18 44 39 11 22 25 43 14 35
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 5202 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 5202 operation(s): scoring 1.000
Test #54:
score: 10
Accepted
time: 0ms
memory: 6100kb
input:
60 50 39 25 0 47 28 27 14 4 34 54 56 5 32 35 40 6 8 51 45 59 37 24 49 10 53 41 21 31 16 29 20 1 13 57 55 12 36 58 18 38 15 46 23 2 33 26 48 7 9 22 43 52 42 17 11 30 44 3 19
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 6222 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 6222 operation(s): scoring 1.000
Test #55:
score: 10
Accepted
time: 0ms
memory: 5968kb
input:
70 0 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
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 7242 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 7242 operation(s): scoring 1.000
Test #56:
score: 10
Accepted
time: 1ms
memory: 6096kb
input:
70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 7242 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 7242 operation(s): scoring 1.000
Test #57:
score: 10
Accepted
time: 1ms
memory: 8148kb
input:
70 0 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 7242 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 7242 operation(s): scoring 1.000
Test #58:
score: 10
Accepted
time: 1ms
memory: 6092kb
input:
70 5 11 49 41 36 1 38 31 54 20 6 33 39 9 22 52 21 61 17 7 26 40 57 48 65 58 28 30 55 13 18 56 4 14 50 27 42 16 67 15 47 12 64 51 19 44 8 69 35 45 24 62 63 34 53 29 37 46 68 60 23 59 2 10 32 66 43 25 0 3
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 7242 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 7242 operation(s): scoring 1.000
Test #59:
score: 10
Accepted
time: 0ms
memory: 6096kb
input:
70 59 69 24 43 44 48 32 63 31 57 54 9 50 62 66 17 28 46 11 16 61 33 49 13 35 8 37 6 56 47 58 23 3 36 51 20 10 40 5 55 7 0 68 21 12 65 14 27 64 4 39 30 22 34 15 38 45 53 26 67 2 60 41 1 18 29 25 19 52 42
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 7242 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 7242 operation(s): scoring 1.000
Test #60:
score: 10
Accepted
time: 0ms
memory: 8016kb
input:
70 69 2 19 37 49 11 26 4 34 24 33 31 29 57 51 32 30 58 9 15 64 63 46 0 67 53 48 3 27 62 38 36 6 5 45 56 10 39 1 17 59 21 13 7 41 14 8 55 28 66 25 23 68 65 50 22 12 60 54 61 43 40 35 42 52 44 18 47 16 20
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 7242 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 7242 operation(s): scoring 1.000
Test #61:
score: 10
Accepted
time: 0ms
memory: 6096kb
input:
70 4 51 11 69 24 35 17 36 26 50 67 39 19 2 47 56 59 18 32 40 5 21 57 12 14 42 27 62 63 58 30 38 13 68 3 54 55 64 9 22 66 23 20 34 1 10 31 0 46 41 65 28 52 43 16 60 49 7 44 25 29 61 6 45 53 48 8 33 37 15
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 7242 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 7242 operation(s): scoring 1.000
Test #62:
score: 10
Accepted
time: 0ms
memory: 8148kb
input:
70 47 44 13 34 0 20 62 57 66 38 45 2 23 32 24 69 54 6 17 12 42 21 39 41 4 59 8 26 51 60 30 46 18 67 43 5 7 68 31 11 19 49 25 53 58 63 48 14 65 56 9 1 52 64 35 36 15 22 29 16 55 61 27 28 37 50 40 10 33 3
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 7242 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 7242 operation(s): scoring 1.000
Test #63:
score: 10
Accepted
time: 0ms
memory: 8148kb
input:
69 4 51 11 15 24 35 17 36 26 50 67 39 19 2 47 56 59 18 32 40 5 21 57 12 14 42 27 62 63 58 30 38 13 68 3 54 55 64 9 22 66 23 20 34 1 10 31 0 46 41 65 28 52 43 16 60 49 7 44 25 29 61 6 45 53 48 8 33 37
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 7140 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 7140 operation(s): scoring 1.000
Test #64:
score: 10
Accepted
time: 0ms
memory: 8148kb
input:
69 47 44 13 34 0 20 62 57 66 38 45 2 23 32 24 3 54 6 17 12 42 21 39 41 4 59 8 26 51 60 30 46 18 67 43 5 7 68 31 11 19 49 25 53 58 63 48 14 65 56 9 1 52 64 35 36 15 22 29 16 55 61 27 28 37 50 40 10 33
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 7140 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 7140 operation(s): scoring 1.000
Subtask #3:
score: 15
Accepted
Dependency #2:
100%
Accepted
Test #65:
score: 15
Accepted
time: 16ms
memory: 22352kb
input:
900 768 779 241 777 723 135 339 840 870 593 715 269 517 362 516 312 773 188 839 508 887 91 798 518 435 370 51 486 725 520 833 716 304 636 628 408 681 663 363 237 784 10 131 570 97 431 205 752 629 803 299 866 642 258 196 806 823 307 634 274 800 138 96 595 538 134 667 66 682 157 364 164 283 421 545 77...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 91902 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 91902 operation(s): scoring 1.000
Test #66:
score: 15
Accepted
time: 14ms
memory: 24536kb
input:
900 0 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...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 91902 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 91902 operation(s): scoring 1.000
Test #67:
score: 15
Accepted
time: 16ms
memory: 24324kb
input:
900 899 898 897 896 895 894 893 892 891 890 889 888 887 886 885 884 883 882 881 880 879 878 877 876 875 874 873 872 871 870 869 868 867 866 865 864 863 862 861 860 859 858 857 856 855 854 853 852 851 850 849 848 847 846 845 844 843 842 841 840 839 838 837 836 835 834 833 832 831 830 829 828 827 826 ...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 91902 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 91902 operation(s): scoring 1.000
Test #68:
score: 15
Accepted
time: 15ms
memory: 24408kb
input:
900 110 290 701 69 560 468 706 896 164 350 795 322 361 2 567 792 602 846 643 720 589 826 420 578 363 192 551 852 104 797 352 427 543 585 396 114 639 715 201 280 66 672 803 574 879 176 106 798 882 270 723 165 750 43 391 202 49 105 149 318 387 389 141 408 486 740 717 33 557 702 25 781 710 633 82 434 5...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 91902 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 91902 operation(s): scoring 1.000
Test #69:
score: 15
Accepted
time: 17ms
memory: 24408kb
input:
900 872 621 13 634 849 524 778 673 717 201 338 854 494 273 637 310 391 887 360 83 324 888 170 80 309 70 211 551 881 171 512 659 825 67 172 256 762 564 344 814 357 628 452 53 85 217 401 245 111 56 135 290 828 837 325 402 281 420 258 400 202 112 728 661 441 316 40 115 288 3 196 481 469 569 122 582 228...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 91902 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 91902 operation(s): scoring 1.000
Test #70:
score: 15
Accepted
time: 16ms
memory: 22356kb
input:
900 11 3 4 24 16 14 23 46 28 33 10 0 9 7 20 69 13 32 6 53 1 56 55 2 5 27 78 45 59 54 34 76 18 37 41 26 30 73 48 67 8 17 49 66 31 29 35 93 88 42 39 58 101 22 70 12 43 84 92 19 85 21 68 90 65 77 81 57 15 50 100 38 52 98 135 74 72 87 95 79 71 89 47 119 97 75 36 51 126 132 114 113 91 96 63 64 103 25 62 ...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 91902 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 91902 operation(s): scoring 1.000
Test #71:
score: 15
Accepted
time: 16ms
memory: 22480kb
input:
900 141 85 25 118 6 26 48 83 24 128 18 34 125 60 97 99 73 1 42 27 64 38 11 9 40 16 3 108 100 19 4 37 2 126 65 14 32 30 54 36 28 56 0 103 22 29 8 162 113 124 107 33 13 46 5 59 84 227 89 179 51 35 145 121 58 17 153 109 139 57 106 62 53 112 79 45 44 63 156 130 173 191 31 93 66 41 10 183 7 80 114 23 187...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 91902 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 91902 operation(s): scoring 1.000
Test #72:
score: 15
Accepted
time: 14ms
memory: 22356kb
input:
900 138 15 132 59 276 230 72 117 65 118 119 176 108 11 68 129 145 45 51 109 87 115 91 69 52 146 61 125 137 73 29 49 47 201 135 157 249 326 200 153 40 62 82 234 38 44 293 111 169 34 164 5 7 83 122 136 23 50 8 33 313 112 218 168 131 150 66 28 30 124 144 182 14 12 142 309 270 213 48 107 120 114 70 80 1...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 91902 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 91902 operation(s): scoring 1.000
Test #73:
score: 15
Accepted
time: 14ms
memory: 22480kb
input:
900 835 56 592 297 662 36 806 860 676 651 426 68 97 291 194 546 416 239 57 106 10 79 642 706 514 450 320 723 113 366 553 133 38 290 203 252 281 182 103 430 158 445 656 199 769 7 627 172 480 135 324 243 494 70 249 549 663 489 329 475 525 287 811 227 803 260 139 53 9 229 482 48 884 122 548 722 488 555...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 91902 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 91902 operation(s): scoring 1.000
Test #74:
score: 15
Accepted
time: 1ms
memory: 10192kb
input:
100 84 45 54 73 43 11 57 52 33 44 3 63 78 49 93 67 96 31 29 8 89 82 98 72 19 9 99 51 66 39 68 0 20 46 42 74 61 18 13 50 69 40 86 41 88 79 37 64 21 22 38 56 77 24 1 27 34 4 47 80 58 26 7 53 6 14 83 32 97 76 12 30 55 25 62 71 81 5 16 36 2 85 28 10 15 94 23 91 59 65 87 92 95 75 90 60 70 17 48 35
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 10302 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 10302 operation(s): scoring 1.000
Test #75:
score: 15
Accepted
time: 0ms
memory: 10068kb
input:
200 163 115 52 121 117 157 156 43 2 153 96 198 56 159 69 182 193 66 162 67 122 112 25 175 30 51 170 48 151 133 90 38 0 5 82 91 12 135 93 21 4 110 78 109 148 185 167 178 19 75 191 49 166 118 165 35 186 77 64 94 72 97 103 17 53 139 45 15 101 150 13 149 47 107 95 125 34 28 60 10 6 87 8 177 116 26 7 1 7...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 20502 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 20502 operation(s): scoring 1.000
Test #76:
score: 15
Accepted
time: 4ms
memory: 14168kb
input:
400 80 160 306 121 154 375 171 200 352 68 137 195 379 15 215 267 82 145 3 167 39 232 393 116 210 330 197 285 298 348 4 32 217 6 13 295 83 313 190 138 346 290 10 5 78 63 42 91 192 353 221 0 97 319 40 45 243 283 166 182 126 342 189 84 88 314 233 349 281 289 275 391 338 87 380 141 17 128 110 326 96 339...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 40902 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 40902 operation(s): scoring 1.000
Test #77:
score: 15
Accepted
time: 7ms
memory: 18388kb
input:
600 419 135 560 216 155 159 137 503 7 41 241 394 286 593 139 75 535 102 171 354 24 367 40 69 5 318 224 428 74 346 187 502 258 287 376 13 114 375 170 160 590 204 275 476 327 237 153 411 330 156 122 161 27 345 357 131 322 424 541 292 196 164 585 525 264 526 87 499 195 457 307 260 323 588 572 418 15 14...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 61302 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 61302 operation(s): scoring 1.000
Test #78:
score: 15
Accepted
time: 11ms
memory: 22356kb
input:
800 603 487 641 673 9 702 167 303 214 557 639 669 528 227 199 365 52 455 721 211 93 299 253 726 97 156 707 335 206 48 725 29 50 279 59 62 768 699 165 339 89 261 12 289 231 608 55 292 438 749 280 88 71 505 123 680 395 740 652 87 517 708 7 582 483 551 638 606 795 2 397 342 378 330 599 340 30 628 160 3...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 81702 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 81702 operation(s): scoring 1.000
Test #79:
score: 15
Accepted
time: 15ms
memory: 22488kb
input:
888 365 739 465 537 177 334 210 644 398 236 21 138 873 661 167 419 401 322 571 582 545 252 416 137 710 373 59 263 624 851 871 174 275 5 825 667 666 550 352 690 28 101 755 375 130 815 493 400 296 573 581 58 621 711 747 610 165 246 768 359 343 840 415 222 278 29 430 300 142 366 809 25 721 397 372 444 ...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 90678 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 90678 operation(s): scoring 1.000
Test #80:
score: 15
Accepted
time: 16ms
memory: 24404kb
input:
900 535 1 12 818 855 550 626 618 213 736 864 294 570 208 649 239 56 249 803 394 745 812 90 97 415 573 340 218 716 648 148 77 451 112 36 154 323 582 730 679 122 781 597 606 214 426 741 806 13 841 783 413 470 14 725 858 452 37 338 445 713 630 29 467 259 41 689 425 254 512 366 755 489 220 411 588 508 2...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 91902 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 91902 operation(s): scoring 1.000
Test #81:
score: 15
Accepted
time: 15ms
memory: 24528kb
input:
900 726 839 261 363 543 68 191 20 564 359 607 873 436 11 830 625 534 818 816 146 139 127 315 791 369 785 373 860 89 889 445 671 499 526 856 32 581 568 220 187 186 443 141 114 674 635 595 306 588 132 24 52 786 50 846 164 872 285 500 446 434 362 821 582 520 509 46 391 130 297 798 59 29 351 848 435 503...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 91902 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 91902 operation(s): scoring 1.000
Test #82:
score: 15
Accepted
time: 15ms
memory: 24532kb
input:
900 0 899 898 897 896 895 894 893 892 891 890 889 888 887 886 885 884 883 882 881 880 879 878 877 876 875 874 873 872 871 870 869 868 867 866 865 864 863 862 861 860 859 858 857 856 855 854 853 852 851 850 849 848 847 846 845 844 843 842 841 840 839 838 837 836 835 834 833 832 831 830 829 828 827 82...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 91902 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 91902 operation(s): scoring 1.000
Test #83:
score: 15
Accepted
time: 16ms
memory: 22484kb
input:
899 872 621 13 634 849 524 778 673 717 201 338 854 494 273 637 310 391 887 360 83 324 888 170 80 309 70 211 551 881 171 512 659 825 67 172 256 762 564 344 814 357 628 452 53 85 217 401 245 111 56 135 290 828 837 325 402 281 420 258 400 202 112 728 661 441 316 40 115 288 3 196 481 469 569 122 582 228...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 91800 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 91800 operation(s): scoring 1.000
Subtask #4:
score: 10
Accepted
Test #84:
score: 10
Accepted
time: 957ms
memory: 102776kb
input:
5000 0 4022 1149 1576 2995 1809 3803 4188 1400 1251 4042 2830 766 4811 1622 4002 4474 1003 1152 130 4794 1902 1292 968 4673 3459 1795 3812 531 2335 1660 4968 3632 4047 353 4448 2515 1581 4259 1389 3628 3760 1381 2527 2353 4323 2807 386 1731 1973 1209 1982 232 747 2904 897 4375 2921 3384 457 1050 936...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 510102 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 510102 operation(s): scoring 1.000
Test #85:
score: 10
Accepted
time: 953ms
memory: 103032kb
input:
5000 0 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...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 510102 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 510102 operation(s): scoring 1.000
Test #86:
score: 10
Accepted
time: 954ms
memory: 105844kb
input:
5000 0 4999 4998 4997 4996 4995 4994 4993 4992 4991 4990 4989 4988 4987 4986 4985 4984 4983 4982 4981 4980 4979 4978 4977 4976 4975 4974 4973 4972 4971 4970 4969 4968 4967 4966 4965 4964 4963 4962 4961 4960 4959 4958 4957 4956 4955 4954 4953 4952 4951 4950 4949 4948 4947 4946 4945 4944 4943 4942 494...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 510102 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 510102 operation(s): scoring 1.000
Test #87:
score: 10
Accepted
time: 969ms
memory: 103156kb
input:
5000 0 206 472 204 527 84 134 30 801 61 100 138 695 340 228 259 31 157 218 266 352 231 500 80 362 99 189 77 168 344 475 223 111 626 161 282 96 368 434 91 165 230 479 621 215 269 37 116 433 425 166 182 505 22 553 40 526 14 125 65 17 524 58 252 57 673 90 508 365 42 88 72 25 565 609 150 651 200 86 546 ...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 510102 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 510102 operation(s): scoring 1.000
Test #88:
score: 10
Accepted
time: 964ms
memory: 102260kb
input:
5000 0 1918 435 1484 391 600 3475 951 1459 2753 516 1512 1121 1064 893 1355 1675 114 909 550 566 548 1081 933 157 78 789 264 230 1010 61 57 514 1016 118 964 925 1199 915 226 1019 505 408 997 773 547 35 1229 286 3645 1876 1210 487 1209 182 1424 859 611 1138 1038 719 532 546 2514 1607 1230 1296 2271 7...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 510102 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 510102 operation(s): scoring 1.000
Test #89:
score: 10
Accepted
time: 979ms
memory: 103160kb
input:
5000 0 2684 3226 1101 1223 1375 2678 800 656 582 494 3141 326 4523 2100 301 2233 1802 2722 748 4318 3192 842 2049 185 1882 779 925 725 3950 4766 3570 3964 2297 4513 1147 4732 889 3925 4508 1066 4444 3340 3216 2739 3806 2457 2903 4350 2376 1595 4257 3921 4618 3573 1564 1825 4770 1010 2662 214 961 709...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 510102 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 510102 operation(s): scoring 1.000
Test #90:
score: 10
Accepted
time: 20ms
memory: 24368kb
input:
1004 0 94 823 206 67 75 150 792 825 803 790 176 433 457 147 362 622 266 445 467 596 251 530 778 122 582 2 992 789 409 946 555 834 47 11 488 30 570 830 366 874 828 452 900 766 371 620 141 98 334 262 952 279 311 9 172 363 795 203 401 257 137 181 323 48 642 886 244 458 945 890 866 66 249 835 722 551 94...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 102510 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 102510 operation(s): scoring 1.000
Test #91:
score: 10
Accepted
time: 81ms
memory: 44892kb
input:
2003 0 1419 488 1442 1638 1036 121 530 1101 158 1622 1743 852 1556 739 1201 545 1969 1753 1140 1230 1923 1382 1792 1258 1967 1495 538 1244 644 1680 1811 464 1388 877 1355 911 1675 759 624 341 1100 796 1886 1568 1487 1236 605 1316 1337 315 689 1922 1227 1120 435 1260 1213 1152 1905 956 925 1542 1064 ...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 204408 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 204408 operation(s): scoring 1.000
Test #92:
score: 10
Accepted
time: 243ms
memory: 65512kb
input:
3002 0 167 2914 131 2383 2275 1603 2009 2637 2085 1605 215 1119 1032 1352 799 2681 2622 1876 1400 202 931 2996 800 1958 108 263 2490 1812 2940 1860 508 286 1042 299 2581 1223 594 2414 2256 1120 1604 1833 2967 572 2807 1554 1048 1151 350 1830 2593 823 2582 1600 409 1382 2276 1698 281 1863 1208 1894 2...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 306306 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 306306 operation(s): scoring 1.000
Test #93:
score: 10
Accepted
time: 616ms
memory: 83952kb
input:
4001 0 3751 2983 1519 958 3118 2231 3295 1730 1660 264 3509 3252 2342 3573 977 422 642 1551 2058 1177 1704 1502 516 1685 244 2752 1789 119 1274 509 1316 1569 2621 3083 974 1895 1865 1057 1015 779 1082 3915 3889 124 160 2433 338 3048 1295 592 708 1665 2895 3806 3868 3183 2357 3390 1449 1811 1448 3578...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 408204 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 408204 operation(s): scoring 1.000
Test #94:
score: 10
Accepted
time: 1ms
memory: 6100kb
input:
10 0 3 2 1 5 4 6 9 8 7
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1122 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1122 operation(s): scoring 1.000
Test #95:
score: 10
Accepted
time: 1ms
memory: 6056kb
input:
10 0 8 1 3 6 9 5 2 4 7
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1122 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1122 operation(s): scoring 1.000
Test #96:
score: 10
Accepted
time: 1ms
memory: 6100kb
input:
10 0 8 4 9 6 2 1 5 3 7
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1122 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1122 operation(s): scoring 1.000
Test #97:
score: 10
Accepted
time: 0ms
memory: 8148kb
input:
70 0 35 22 19 46 16 44 39 21 40 34 20 24 56 60 61 5 43 38 4 25 13 41 54 7 29 42 65 8 12 55 52 11 18 67 50 36 10 49 59 51 1 9 62 23 33 37 69 3 45 66 28 30 58 17 31 64 48 26 27 47 57 53 68 2 6 32 63 14 15
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 7242 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 7242 operation(s): scoring 1.000
Test #98:
score: 10
Accepted
time: 15ms
memory: 22356kb
input:
900 0 899 898 897 896 895 894 893 892 891 890 889 888 887 886 885 884 883 882 881 880 879 878 877 876 875 874 873 872 871 870 869 868 867 866 865 864 863 862 861 860 859 858 857 856 855 854 853 852 851 850 849 848 847 846 845 844 843 842 841 840 839 838 837 836 835 834 833 832 831 830 829 828 827 82...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 91902 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 91902 operation(s): scoring 1.000
Test #99:
score: 10
Accepted
time: 0ms
memory: 5968kb
input:
1 0
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 204 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 204 operation(s): scoring 1.000
Test #100:
score: 10
Accepted
time: 1ms
memory: 6096kb
input:
2 0 1
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 306 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 306 operation(s): scoring 1.000
Test #101:
score: 10
Accepted
time: 0ms
memory: 6092kb
input:
3 0 1 2
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 408 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 408 operation(s): scoring 1.000
Test #102:
score: 10
Accepted
time: 1ms
memory: 6096kb
input:
4 0 3 2 1
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 510 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 510 operation(s): scoring 1.000
Test #103:
score: 10
Accepted
time: 1ms
memory: 6100kb
input:
5 0 1 2 3 4
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 612 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 612 operation(s): scoring 1.000
Test #104:
score: 10
Accepted
time: 0ms
memory: 5968kb
input:
10 0 1 2 3 4 5 6 7 8 9
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 1122 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 1122 operation(s): scoring 1.000
Test #105:
score: 10
Accepted
time: 0ms
memory: 6092kb
input:
49 0 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
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 5100 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 5100 operation(s): scoring 1.000
Test #106:
score: 10
Accepted
time: 0ms
memory: 7980kb
input:
123 0 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...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 12648 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 12648 operation(s): scoring 1.000
Test #107:
score: 10
Accepted
time: 946ms
memory: 103152kb
input:
4992 0 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...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 509286 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 509286 operation(s): scoring 1.000
Test #108:
score: 10
Accepted
time: 1001ms
memory: 102772kb
input:
4999 0 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...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 510000 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 510000 operation(s): scoring 1.000
Test #109:
score: 10
Accepted
time: 949ms
memory: 102264kb
input:
4929 0 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...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 502860 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 502860 operation(s): scoring 1.000
Subtask #5:
score: 0
Wrong Answer
Dependency #3:
100%
Accepted
Dependency #4:
100%
Accepted
Test #110:
score: 60
Accepted
time: 965ms
memory: 102904kb
input:
5000 3186 1190 3593 4442 2400 468 706 3754 164 3912 3879 4335 361 3238 4648 3337 1416 1194 643 2973 1575 2755 420 2318 1185 1982 3140 1687 4473 4680 3168 912 4683 2255 3122 3671 4895 1269 3053 3446 66 672 3268 4493 3278 3136 106 4535 3900 270 1268 1311 4764 4623 4860 202 1386 1441 2471 3596 4955 389...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 510102 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 510102 operation(s): scoring 1.000
Test #111:
score: 60
Accepted
time: 976ms
memory: 102900kb
input:
5000 4812 1613 1841 3179 4168 2142 2545 2653 717 2282 4227 2577 2308 3308 637 1300 391 4907 3716 1894 4980 4377 3458 2792 1904 70 1003 2852 881 2215 1076 4771 1573 67 1228 4195 762 2081 1135 4122 3802 2024 1699 1612 85 217 2260 1720 111 4975 1216 4160 1942 2664 4615 402 4184 1460 2478 3986 202 112 7...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 510102 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 510102 operation(s): scoring 1.000
Test #112:
score: 60
Accepted
time: 966ms
memory: 102900kb
input:
4999 3186 1190 3593 4442 2400 468 706 3754 164 3912 3879 4335 361 3238 4648 3337 1416 1194 643 2973 1575 2755 420 2318 1185 1982 3140 1687 4473 4680 3168 912 4683 2255 3122 3671 4895 1269 3053 3446 66 672 3268 4493 3278 3136 106 4535 3900 270 1268 1311 4764 4623 4860 202 1386 1441 2471 3596 4955 389...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 510000 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 510000 operation(s): scoring 1.000
Test #113:
score: 60
Accepted
time: 986ms
memory: 103160kb
input:
4999 4812 1613 1841 3179 4168 2142 2545 2653 717 2282 4227 2577 2308 3308 637 1300 391 4907 3716 1894 4980 4377 3458 2792 1904 70 1003 2852 881 2215 1076 4771 1573 67 1228 4195 762 2081 1135 4122 3802 2024 1699 1612 85 217 2260 1720 111 4975 1216 4160 1942 2664 4615 402 4184 1460 2478 3986 202 112 7...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A OK Passed using 510000 operation(s): scoring 1.000 1.0000000000
result:
ok Passed using 510000 operation(s): scoring 1.000
Test #114:
score: 0
Wrong Answer
time: 956ms
memory: 102900kb
input:
4998 3186 1190 3593 4442 2400 468 706 3754 164 3912 3879 4335 361 3238 4648 3337 1416 1194 643 2973 1575 2755 420 2318 1185 1982 3140 1687 4473 4680 3168 912 4683 2255 3122 3671 4895 1269 3053 3446 66 672 3268 4493 3278 3136 106 4535 3900 270 1268 1311 4764 4623 4860 202 1386 1441 2471 3596 4955 389...
output:
68F82AC1898AF4BFACDCBB49543233A61773093A WA Incorrect answer: p_0 is expected to be 3186 but found 2684
result:
wrong answer Incorrect answer: p_0 is expected to be 3186 but found 2684