QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#603275 | #9415. Matrix | ucup-team3474 | AC ✓ | 1ms | 3948kb | C++20 | 1.2kb | 2024-10-01 15:37:47 | 2024-10-01 15:37:50 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
const int N=1919810,mod=1e9+7;
typedef long long ll;
typedef pair<ll,ll> PII;
ll n,m,k;
ll a[N],b[N];
char s[N];
ll dp[N];
int c[100][100];
bool check(){
int ans=0;
for(int i=1;i<=n;i++){
for(int j=1;j<=n;j++){
for(int k=i+1;k<=n;k++){
for(int u=j+1;u<=n;u++){
set<int> se;
se.insert(c[i][j]);
se.insert(c[k][j]);
se.insert(c[i][u]);
se.insert(c[k][u]);
if(se.size()==4) ans++;
}
}
}
}
// cout<<ans<<endl;
return ans==1;
}
void __(int cc){
scanf("%d",&n);
// n=cc;
puts("Yes");
for(int i=1;i<=n;i++){
for(int j=i;j<=n;j++){
c[i][j]=i;
c[j][i]=i+n;
}
}
c[n][n-1]=n;
// check();
// assert(check());
for(int i=1;i<=n;i++){
for(int j=1;j<=n;j++) cout<<c[i][j]<<" ";
cout<<endl;
}
}
int main(){
int _=1;
// cin>>_;
while(_--){
__(_);
}
}
这程序好像有点Bug,我给组数据试试?
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3664kb
input:
2
output:
Yes 3 1 2 4
result:
ok Correct. (1 test case)
Test #2:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
3
output:
Yes 4 1 1 4 5 2 4 3 6
result:
ok Correct. (1 test case)
Test #3:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
4
output:
Yes 5 1 1 1 5 6 2 2 5 6 7 3 5 6 4 8
result:
ok Correct. (1 test case)
Test #4:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
5
output:
Yes 6 1 1 1 1 6 7 2 2 2 6 7 8 3 3 6 7 8 9 4 6 7 8 5 10
result:
ok Correct. (1 test case)
Test #5:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
6
output:
Yes 7 1 1 1 1 1 7 8 2 2 2 2 7 8 9 3 3 3 7 8 9 10 4 4 7 8 9 10 11 5 7 8 9 10 6 12
result:
ok Correct. (1 test case)
Test #6:
score: 0
Accepted
time: 0ms
memory: 3928kb
input:
7
output:
Yes 8 1 1 1 1 1 1 8 9 2 2 2 2 2 8 9 10 3 3 3 3 8 9 10 11 4 4 4 8 9 10 11 12 5 5 8 9 10 11 12 13 6 8 9 10 11 12 7 14
result:
ok Correct. (1 test case)
Test #7:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
8
output:
Yes 9 1 1 1 1 1 1 1 9 10 2 2 2 2 2 2 9 10 11 3 3 3 3 3 9 10 11 12 4 4 4 4 9 10 11 12 13 5 5 5 9 10 11 12 13 14 6 6 9 10 11 12 13 14 15 7 9 10 11 12 13 14 8 16
result:
ok Correct. (1 test case)
Test #8:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
9
output:
Yes 10 1 1 1 1 1 1 1 1 10 11 2 2 2 2 2 2 2 10 11 12 3 3 3 3 3 3 10 11 12 13 4 4 4 4 4 10 11 12 13 14 5 5 5 5 10 11 12 13 14 15 6 6 6 10 11 12 13 14 15 16 7 7 10 11 12 13 14 15 16 17 8 10 11 12 13 14 15 16 9 18
result:
ok Correct. (1 test case)
Test #9:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
10
output:
Yes 11 1 1 1 1 1 1 1 1 1 11 12 2 2 2 2 2 2 2 2 11 12 13 3 3 3 3 3 3 3 11 12 13 14 4 4 4 4 4 4 11 12 13 14 15 5 5 5 5 5 11 12 13 14 15 16 6 6 6 6 11 12 13 14 15 16 17 7 7 7 11 12 13 14 15 16 17 18 8 8 11 12 13 14 15 16 17 18 19 9 11 12 13 14 15 16 17 18 10 20
result:
ok Correct. (1 test case)
Test #10:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
11
output:
Yes 12 1 1 1 1 1 1 1 1 1 1 12 13 2 2 2 2 2 2 2 2 2 12 13 14 3 3 3 3 3 3 3 3 12 13 14 15 4 4 4 4 4 4 4 12 13 14 15 16 5 5 5 5 5 5 12 13 14 15 16 17 6 6 6 6 6 12 13 14 15 16 17 18 7 7 7 7 12 13 14 15 16 17 18 19 8 8 8 12 13 14 15 16 17 18 19 20 9 9 12 13 14 15 16 17 18 19 20 21 10 12 13 14 1...
result:
ok Correct. (1 test case)
Test #11:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
12
output:
Yes 13 1 1 1 1 1 1 1 1 1 1 1 13 14 2 2 2 2 2 2 2 2 2 2 13 14 15 3 3 3 3 3 3 3 3 3 13 14 15 16 4 4 4 4 4 4 4 4 13 14 15 16 17 5 5 5 5 5 5 5 13 14 15 16 17 18 6 6 6 6 6 6 13 14 15 16 17 18 19 7 7 7 7 7 13 14 15 16 17 18 19 20 8 8 8 8 13 14 15 16 17 18 19 20 21 9 9 9 13 14 15 16 17 18 19 20 21...
result:
ok Correct. (1 test case)
Test #12:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
13
output:
Yes 14 1 1 1 1 1 1 1 1 1 1 1 1 14 15 2 2 2 2 2 2 2 2 2 2 2 14 15 16 3 3 3 3 3 3 3 3 3 3 14 15 16 17 4 4 4 4 4 4 4 4 4 14 15 16 17 18 5 5 5 5 5 5 5 5 14 15 16 17 18 19 6 6 6 6 6 6 6 14 15 16 17 18 19 20 7 7 7 7 7 7 14 15 16 17 18 19 20 21 8 8 8 8 8 14 15 16 17 18 19 20 21 22 9 9 9 9 14 15 16...
result:
ok Correct. (1 test case)
Test #13:
score: 0
Accepted
time: 0ms
memory: 3940kb
input:
14
output:
Yes 15 1 1 1 1 1 1 1 1 1 1 1 1 1 15 16 2 2 2 2 2 2 2 2 2 2 2 2 15 16 17 3 3 3 3 3 3 3 3 3 3 3 15 16 17 18 4 4 4 4 4 4 4 4 4 4 15 16 17 18 19 5 5 5 5 5 5 5 5 5 15 16 17 18 19 20 6 6 6 6 6 6 6 6 15 16 17 18 19 20 21 7 7 7 7 7 7 7 15 16 17 18 19 20 21 22 8 8 8 8 8 8 15 16 17 18 19 20 21 22 23 9...
result:
ok Correct. (1 test case)
Test #14:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
15
output:
Yes 16 1 1 1 1 1 1 1 1 1 1 1 1 1 1 16 17 2 2 2 2 2 2 2 2 2 2 2 2 2 16 17 18 3 3 3 3 3 3 3 3 3 3 3 3 16 17 18 19 4 4 4 4 4 4 4 4 4 4 4 16 17 18 19 20 5 5 5 5 5 5 5 5 5 5 16 17 18 19 20 21 6 6 6 6 6 6 6 6 6 16 17 18 19 20 21 22 7 7 7 7 7 7 7 7 16 17 18 19 20 21 22 23 8 8 8 8 8 8 8 16 17 18 19 ...
result:
ok Correct. (1 test case)
Test #15:
score: 0
Accepted
time: 0ms
memory: 3932kb
input:
16
output:
Yes 17 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 17 18 2 2 2 2 2 2 2 2 2 2 2 2 2 2 17 18 19 3 3 3 3 3 3 3 3 3 3 3 3 3 17 18 19 20 4 4 4 4 4 4 4 4 4 4 4 4 17 18 19 20 21 5 5 5 5 5 5 5 5 5 5 5 17 18 19 20 21 22 6 6 6 6 6 6 6 6 6 6 17 18 19 20 21 22 23 7 7 7 7 7 7 7 7 7 17 18 19 20 21 22 23 24 8 8 8 8 8 8 8...
result:
ok Correct. (1 test case)
Test #16:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
17
output:
Yes 18 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 18 19 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 18 19 20 3 3 3 3 3 3 3 3 3 3 3 3 3 3 18 19 20 21 4 4 4 4 4 4 4 4 4 4 4 4 4 18 19 20 21 22 5 5 5 5 5 5 5 5 5 5 5 5 18 19 20 21 22 23 6 6 6 6 6 6 6 6 6 6 6 18 19 20 21 22 23 24 7 7 7 7 7 7 7 7 7 7 18 19 20 21 22 23 24 25...
result:
ok Correct. (1 test case)
Test #17:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
18
output:
Yes 19 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 19 20 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 19 20 21 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 19 20 21 22 4 4 4 4 4 4 4 4 4 4 4 4 4 4 19 20 21 22 23 5 5 5 5 5 5 5 5 5 5 5 5 5 19 20 21 22 23 24 6 6 6 6 6 6 6 6 6 6 6 6 19 20 21 22 23 24 25 7 7 7 7 7 7 7 7 7 7 7 19 20 21 ...
result:
ok Correct. (1 test case)
Test #18:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
19
output:
Yes 20 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 20 21 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 20 21 22 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 20 21 22 23 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 20 21 22 23 24 5 5 5 5 5 5 5 5 5 5 5 5 5 5 20 21 22 23 24 25 6 6 6 6 6 6 6 6 6 6 6 6 6 20 21 22 23 24 25 26 7 7 7 7 7 7 7 7 7 7 ...
result:
ok Correct. (1 test case)
Test #19:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
20
output:
Yes 21 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 21 22 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 21 22 23 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 21 22 23 24 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 21 22 23 24 25 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 21 22 23 24 25 26 6 6 6 6 6 6 6 6 6 6 6 6 6 6 21 22 23 24 25 26 27 7 7 7 7 ...
result:
ok Correct. (1 test case)
Test #20:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
21
output:
Yes 22 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 22 23 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 22 23 24 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 22 23 24 25 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 22 23 24 25 26 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 22 23 24 25 26 27 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 22 23 24 25 26 27...
result:
ok Correct. (1 test case)
Test #21:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
22
output:
Yes 23 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 23 24 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 23 24 25 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 23 24 25 26 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 23 24 25 26 27 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 23 24 25 26 27 28 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 23 24...
result:
ok Correct. (1 test case)
Test #22:
score: 0
Accepted
time: 0ms
memory: 3900kb
input:
23
output:
Yes 24 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 24 25 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 24 25 26 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 24 25 26 27 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 24 25 26 27 28 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 24 25 26 27 28 29 6 6 6 6 6 6 6 6 6 6 6 6 6 6 ...
result:
ok Correct. (1 test case)
Test #23:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
24
output:
Yes 25 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 25 26 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 25 26 27 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 25 26 27 28 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 25 26 27 28 29 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 25 26 27 28 29 30 6 6 6 6 6 6 6 6 6 ...
result:
ok Correct. (1 test case)
Test #24:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
25
output:
Yes 26 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 26 27 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 26 27 28 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 26 27 28 29 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 26 27 28 29 30 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 26 27 28 29 30 31 6 6 6 6 ...
result:
ok Correct. (1 test case)
Test #25:
score: 0
Accepted
time: 0ms
memory: 3940kb
input:
26
output:
Yes 27 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 27 28 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 27 28 29 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 27 28 29 30 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 27 28 29 30 31 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 27 28 29 30 31 3...
result:
ok Correct. (1 test case)
Test #26:
score: 0
Accepted
time: 0ms
memory: 3900kb
input:
27
output:
Yes 28 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 28 29 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 28 29 30 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 28 29 30 31 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 28 29 30 31 32 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 28 29 ...
result:
ok Correct. (1 test case)
Test #27:
score: 0
Accepted
time: 0ms
memory: 3908kb
input:
28
output:
Yes 29 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 29 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 29 30 31 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 29 30 31 32 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 29 30 31 32 33 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5...
result:
ok Correct. (1 test case)
Test #28:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
29
output:
Yes 30 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 30 31 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 30 31 32 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 30 31 32 33 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 30 31 32 33 34 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5...
result:
ok Correct. (1 test case)
Test #29:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
30
output:
Yes 31 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 31 32 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 31 32 33 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 31 32 33 34 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 31 32 33 34 35 5 5 5 5 5 5 5 5 5 5 5 5 5 5...
result:
ok Correct. (1 test case)
Test #30:
score: 0
Accepted
time: 0ms
memory: 3940kb
input:
31
output:
Yes 32 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 32 33 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 32 33 34 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 32 33 34 35 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 32 33 34 35 36 5 5 5 5 5 5 5 5 5 5...
result:
ok Correct. (1 test case)
Test #31:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
32
output:
Yes 33 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 33 34 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 33 34 35 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 33 34 35 36 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 33 34 35 36 37 5 5 5 5 5 5...
result:
ok Correct. (1 test case)
Test #32:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
33
output:
Yes 34 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 34 35 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 34 35 36 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 34 35 36 37 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 34 35 36 37 38 5 5...
result:
ok Correct. (1 test case)
Test #33:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
34
output:
Yes 35 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 35 36 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 35 36 37 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 35 36 37 38 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 35 36 37 3...
result:
ok Correct. (1 test case)
Test #34:
score: 0
Accepted
time: 0ms
memory: 3936kb
input:
35
output:
Yes 36 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 36 37 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 36 37 38 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 36 37 38 39 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 36...
result:
ok Correct. (1 test case)
Test #35:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
36
output:
Yes 37 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 37 38 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 37 38 39 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 37 38 39 40 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4...
result:
ok Correct. (1 test case)
Test #36:
score: 0
Accepted
time: 0ms
memory: 3948kb
input:
37
output:
Yes 38 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 38 39 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 38 39 40 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 38 39 40 41 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4...
result:
ok Correct. (1 test case)
Test #37:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
38
output:
Yes 39 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 39 40 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 39 40 41 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 39 40 41 42 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4...
result:
ok Correct. (1 test case)
Test #38:
score: 0
Accepted
time: 1ms
memory: 3716kb
input:
39
output:
Yes 40 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 40 41 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 40 41 42 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 40 41 42 43 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4...
result:
ok Correct. (1 test case)
Test #39:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
40
output:
Yes 41 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 41 42 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 41 42 43 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 41 42 43 44 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4...
result:
ok Correct. (1 test case)
Test #40:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
41
output:
Yes 42 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 42 43 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 42 43 44 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 42 43 44 45 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4...
result:
ok Correct. (1 test case)
Test #41:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
42
output:
Yes 43 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 43 44 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 43 44 45 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 43 44 45 46 4 4 4 4 4 4 4 4 4 4 4 4...
result:
ok Correct. (1 test case)
Test #42:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
43
output:
Yes 44 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 44 45 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 44 45 46 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 44 45 46 47 4 4 4 4 4 4 4 4 4...
result:
ok Correct. (1 test case)
Test #43:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
44
output:
Yes 45 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 45 46 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 45 46 47 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 45 46 47 48 4 4 4 4 4 4...
result:
ok Correct. (1 test case)
Test #44:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
45
output:
Yes 46 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 46 47 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 46 47 48 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 46 47 48 49 4 4 4...
result:
ok Correct. (1 test case)
Test #45:
score: 0
Accepted
time: 1ms
memory: 3684kb
input:
46
output:
Yes 47 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 47 48 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 47 48 49 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 47 48 49 50...
result:
ok Correct. (1 test case)
Test #46:
score: 0
Accepted
time: 1ms
memory: 3716kb
input:
47
output:
Yes 48 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 48 49 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 48 49 50 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 48 49...
result:
ok Correct. (1 test case)
Test #47:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
48
output:
Yes 49 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 49 50 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 49 50 51 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok Correct. (1 test case)
Test #48:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
49
output:
Yes 50 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 50 51 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 50 51 52 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok Correct. (1 test case)
Test #49:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
50
output:
Yes 51 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 51 52 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 51 52 53 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok Correct. (1 test case)
Extra Test:
score: 0
Extra Test Passed