結果
問題 | No.82 市松模様 |
ユーザー | 👑 cologne |
提出日時 | 2022-01-26 19:28:27 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 93 ms / 5,000 ms |
コード長 | 358 bytes |
コンパイル時間 | 1,247 ms |
コンパイル使用メモリ | 87,056 KB |
実行使用メモリ | 76,204 KB |
最終ジャッジ日時 | 2023-08-25 01:36:12 |
合計ジャッジ時間 | 2,899 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 71 ms
71,252 KB |
testcase_01 | AC | 72 ms
71,108 KB |
testcase_02 | AC | 72 ms
70,984 KB |
testcase_03 | AC | 72 ms
71,188 KB |
testcase_04 | AC | 72 ms
70,984 KB |
testcase_05 | AC | 72 ms
71,052 KB |
testcase_06 | AC | 71 ms
71,120 KB |
testcase_07 | AC | 72 ms
71,172 KB |
testcase_08 | AC | 93 ms
76,164 KB |
testcase_09 | AC | 85 ms
76,204 KB |
ソースコード
import sys def input(): return sys.stdin.readline().rstrip() def main(): W, H, C = input().split() for i in range(int(H)): for j in range(int(W)): if ((i+j) % 2 == 0) == (C == 'W'): print('W', end='') else: print('B', end='') print() if __name__ == '__main__': main()