QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#414582 | #2540. Build The Grid | grass8cow# | WA | 0ms | 3716kb | C++17 | 230b | 2024-05-19 10:31:24 | 2024-05-19 10:31:26 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int n;
int main(){
scanf("%d",&n);
for(int i=1;i<=n;i++)for(int j=1;j<=n;j++){
printf("%c",(i+j<=n+1)?'W':'B');
if(j==n)puts("");
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3716kb
input:
3
output:
WWW WWB WBB
result:
wrong answer there are no white cells around a black cell