結果
問題 | No.82 市松模様 |
ユーザー |
|
提出日時 | 2020-08-05 14:25:52 |
言語 | OCaml (5.2.1) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 246 bytes |
コンパイル時間 | 378 ms |
コンパイル使用メモリ | 21,448 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 01:55:39 |
合計ジャッジ時間 | 961 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
let () =Scanf.scanf "%d %d %s\n" @@ fun w h c ->let k = if c = "B" then 0 else 1 infor i = 0 to h - 1 dofor j = 0 to w - 1 doPrintf.printf "%s" (if (i+j+k) mod 2 = 0 then "B" else "W")done;Printf.printf "\n"done;