QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#227104 | #2540. Build The Grid | JooDdae | WA | 0ms | 3556kb | C++20 | 313b | 2023-10-26 22:14:18 | 2023-10-26 22:14:18 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int n, d, a[200200];
int main() {
cin.tie(0)->sync_with_stdio(0);
cin >> n;
for(int i=0;i<n;i++) {
for(int j=0;j<n;j++) cout << (min(i, j) % 2 == 0 && max(i, j) < n-1 ? 'B' : 'W');
cout << "\n";
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3556kb
input:
3
output:
BBW BWW WWW
result:
wrong answer there are no white cells around a black cell