結果
問題 | No.516 赤と青の風船 |
ユーザー | momen999 |
提出日時 | 2019-04-06 16:26:07 |
言語 | Haskell (9.8.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 190 bytes |
コンパイル時間 | 8,666 ms |
コンパイル使用メモリ | 152,740 KB |
実行使用メモリ | 6,788 KB |
最終ジャッジ日時 | 2023-09-06 06:17:50 |
合計ジャッジ時間 | 1,611 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
6,588 KB |
testcase_01 | AC | 2 ms
6,588 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 2 ms
6,660 KB |
testcase_05 | WA | - |
testcase_06 | AC | 3 ms
6,584 KB |
testcase_07 | AC | 2 ms
6,612 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
ソースコード
import Control.Monad (replicateM) import Data.Bool main = replicateM 3 getLine >>= putStrLn . rb . foldr f 0 where f s y = bool 0 1 (s == "RED") + y rb = bool "BLUE" "RED" . (> 0)