結果

問題 No.82 市松模様
ユーザー かぼちゃ
提出日時 2018-04-08 09:16:42
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 378 bytes
コンパイル時間 503 ms
コンパイル使用メモリ 63,800 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-26 11:12:37
合計ジャッジ時間 1,084 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 5 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <math.h>

#define ALL(x) (x).begin(),(x).end()

using namespace std;

int main() {
    int w,h;
    char c;
    cin >> w >> h >> c;
    for(int i = 0;i < h;i++){
        for(int j = 0;j < w;j++){
            cout << c;
            c = c == 'B' ? 'W' : 'B';
        }
        cout << endl;
    }
    return 0;
}
0