QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#239076 | #6418. Ah, It's Yesterday Once More | PlentyOfPenalty | WA | 0ms | 3608kb | C++20 | 593b | 2023-11-04 18:22:14 | 2023-11-04 18:22:14 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
const int N=25;
int n,a[N][N];
void solve(int l,int r,bool fl){
if(l>r){
return;
}
for(int i=l;i<=r;i++){
a[l][i]=1;
a[r][i]=1;
a[i][l]=1;
a[i][r]=1;
}
if(fl){
a[l+2][l+1]=1;
a[r][r-1]=0;
}else{
a[r-2][r-1]=1;
a[l+1][l]=0;
}
solve(l+2,r-2,!fl);
}
int main(){
cin.tie(0)->sync_with_stdio(0);
n=20;
solve(1,n,true);
cout<<n<<" "<<n<<endl;
a[11][10]=0;
for(int i=1;i<=n;i++){
for(int j=1;j<=n;j++)cout<<a[i][j];
// for(int j=1;j<=n;j++)cout<<(a[i][j]?'X':' ');
cout<<endl;
}
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3608kb
input:
output:
20 20 11111111111111111111 10000000000000000001 11111111111111111101 10000000000000000101 10101111111111110101 10101000000000010101 10101111111111010101 10101000000001010101 10101010111101010101 10101010100101010101 10101010100101010101 10101010110111010101 10101010000001010101 10101011111111010101 ...
result:
wrong answer 9 successful hack.