QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#594941#2540. Build The Gridgambit#WA 0ms3724kbC++14252b2024-09-28 11:23:312024-09-28 11:23:33

Judging History

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

  • [2024-09-28 11:23:33]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3724kb
  • [2024-09-28 11:23:31]
  • 提交

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