結果

問題 No.82 市松模様
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-07-24 00:21:30
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 5,000 ms
コード長 419 bytes
コンパイル時間 1,970 ms
コンパイル使用メモリ 101,296 KB
実行使用メモリ 22,812 KB
最終ジャッジ日時 2023-08-30 07:51:55
合計ジャッジ時間 3,324 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
22,728 KB
testcase_01 AC 57 ms
20,624 KB
testcase_02 AC 57 ms
18,584 KB
testcase_03 AC 57 ms
22,696 KB
testcase_04 AC 56 ms
22,812 KB
testcase_05 AC 56 ms
20,648 KB
testcase_06 AC 57 ms
20,788 KB
testcase_07 AC 57 ms
20,620 KB
testcase_08 AC 61 ms
22,696 KB
testcase_09 AC 61 ms
22,676 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class No82{
    static void Main(){
        var a=(Console.ReadLine()).Split(' ');
        var b=Int32.Parse(a[0]);
        var c=Int32.Parse(a[1]);
        for(int y=0;y<c;++y){
            for(int x=0;x<b;++x){
                Console.Write(a[2]);
                a[2]=(a[2]=="B")?"W":"B";
            }
            Console.WriteLine();
            if(b%2==0)a[2]=(a[2]=="B")?"W":"B";
        }
    }
}
0