QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#49278 | #2540. Build The Grid | Bovmelo | WA | 1ms | 3460kb | C++20 | 456b | 2022-09-19 21:34:21 | 2022-09-19 21:34:23 |
Judging History
answer
// Nothing is Given, Everything is Earned.
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n; cin>>n;
vector<vector<int>> a;
for(int i=0;i<n;i+=2)
{
a.push_back(vector(i,0));
a.push_back(vector(i,1));
for(auto &i:a)
{
i.push_back(0);
i.push_back(1);
}
}
for(auto i:a)
{
for(auto j:i) cout<<(j?'B':'W');
cout<<"\n";
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3460kb
input:
3
output:
WBWB WBWB WWWB BBWB
result:
wrong answer invalid output