結果

問題 No.82 市松模様
ユーザー しめはじめ
提出日時 2019-07-16 08:22:01
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 290 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 28,160 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-29 19:39:50
合計ジャッジ時間 1,054 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 5 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(void){
    int w, h;
    int i, j;
    char c;
    scanf( "%d %d %c", &w, &h, &c );
    for( i = 0; i < h; i++ ){
        for( j = 0; j < w; j++ ){
            printf( "%c", c );
            c = ( c == 'B' ) ? 'W' : 'B';
        }
        printf( "\n" );
    }
}
0