QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#49278#2540. Build The GridBovmeloWA 1ms3460kbC++20456b2022-09-19 21:34:212022-09-19 21:34:23

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-09-19 21:34:23]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3460kb
  • [2022-09-19 21:34:21]
  • 提交

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