QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#227104#2540. Build The GridJooDdaeWA 0ms3556kbC++20313b2023-10-26 22:14:182023-10-26 22:14:18

Judging History

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

  • [2023-10-26 22:14:18]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3556kb
  • [2023-10-26 22:14:18]
  • 提交

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";
    }
}

詳細信息

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