QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#594941 | #2540. Build The Grid | gambit# | WA | 0ms | 3724kb | C++14 | 252b | 2024-09-28 11:23:31 | 2024-09-28 11:23:33 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int main() {
int N; cin >> N;
for(int i=0;i<N;i++) {
for(int j=0;j<N;j++) {
if(i<j) cout << 'B';
else cout << 'W';
}
cout << '\n';
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3724kb
input:
3
output:
WBB WWB WWW
result:
wrong answer there are no white cells around a black cell