QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#23000#2540. Build The GridFudanU1#WA 3ms3724kbC++20357b2022-03-11 14:57:482022-04-30 02:13:21

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-04-30 02:13:21]
  • 评测
  • 测评结果:WA
  • 用时:3ms
  • 内存:3724kb
  • [2022-03-11 14:57:48]
  • 提交

answer

#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
int n;
bool b[600][600];
int main(){
	scanf("%d",&n);
	for(int i=n;i>=2;i-=2){
		for(int j=2;j<=i;j++)b[i][j]=b[j][i]=1;
	}
	for(int i=1;i<=n;i++){
		for(int j=1;j<=n;j++)if(b[i][j])putchar('B');else putchar('W');putchar('\n');
	}
	
	return 0;
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 3ms
memory: 3724kb

input:

3

output:

WWW
WWB
WBB

result:

wrong answer there are no white cells around a black cell