QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#239081#6418. Ah, It's Yesterday Once MorePlentyOfPenaltyWA 0ms3600kbC++20643b2023-11-04 18:23:542023-11-04 18:23:55

Judging History

你现在查看的是最新测评结果

  • [2023-11-04 18:23:55]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3600kb
  • [2023-11-04 18:23:54]
  • 提交

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;
	for(int i=1;i<=n;i++)a[i][i]=a[i][i+1]=1;
	// 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;
	}
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3600kb

input:



output:

20 20
11000000000000000000
01100000000000000000
00110000000000000000
00011000000000000000
00001100000000000000
00000110000000000000
00000011000000000000
00000001100000000000
00000000110000000000
00000000011000000000
00000000001100000000
00000000000110000000
00000000000011000000
00000000000001100000
...

result:

wrong answer 0 successful hack.