結果
問題 | No.82 市松模様 |
ユーザー |
![]() |
提出日時 | 2018-06-03 11:04:32 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 223 bytes |
コンパイル時間 | 10,408 ms |
コンパイル使用メモリ | 66,780 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 09:16:04 |
合計ジャッジ時間 | 3,782 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 18) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import strutils, sequtilslett = stdin.readLine.split(W, H, C) = (t[0].parseInt, t[1].parseInt, t[2])for i in 0 ..< H:for j in 0 ..< W:stdout.write(["B", "W"][(int(C == "W") + j mod 2 + i) mod 2])echo()