結果

問題 No.82 市松模様
ユーザー lllllll88938494lllllll88938494
提出日時 2023-05-28 20:52:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 86 ms / 5,000 ms
コード長 229 bytes
コンパイル時間 576 ms
コンパイル使用メモリ 87,076 KB
実行使用メモリ 76,724 KB
最終ジャッジ日時 2023-08-27 16:14:30
合計ジャッジ時間 1,730 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,512 KB
testcase_01 AC 72 ms
71,032 KB
testcase_02 AC 73 ms
71,048 KB
testcase_03 AC 73 ms
71,360 KB
testcase_04 AC 72 ms
71,416 KB
testcase_05 AC 72 ms
71,192 KB
testcase_06 AC 71 ms
71,512 KB
testcase_07 AC 73 ms
71,556 KB
testcase_08 AC 84 ms
76,724 KB
testcase_09 AC 86 ms
76,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

w,h,c = input().split()
if c =='W':d='B'
else:d='W'
    
for i in range(int(h)):
    for j in range(int(w)):
        if (i + j)%2 == 0:
            print(c,end='')
        else:
            print(d,end='')
    print('')
        
0