結果

問題 No.82 市松模様
ユーザー aimyaimy
提出日時 2017-05-01 23:37:14
言語 Haskell
(9.8.2)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 181 bytes
コンパイル時間 844 ms
コンパイル使用メモリ 155,736 KB
実行使用メモリ 7,404 KB
最終ジャッジ日時 2023-10-12 02:33:15
合計ジャッジ時間 1,736 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,096 KB
testcase_01 AC 2 ms
7,004 KB
testcase_02 AC 3 ms
7,068 KB
testcase_03 AC 2 ms
7,052 KB
testcase_04 AC 3 ms
7,300 KB
testcase_05 AC 3 ms
7,132 KB
testcase_06 AC 2 ms
7,204 KB
testcase_07 AC 2 ms
7,300 KB
testcase_08 AC 2 ms
7,404 KB
testcase_09 AC 3 ms
7,396 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

import Data.List

main = do
 [w,h,c] <- words <$> getLine
 let ichimatsu = tails $ dropWhile (/= head c) (cycle "BW")
 mapM_ putStrLn $ take (read h) (map (take (read w)) ichimatsu)
0