結果
問題 | No.2960 Judgement |
ユーザー |
|
提出日時 | 2024-11-17 19:16:02 |
言語 | Haskell (9.10.1) |
結果 |
AC
|
実行時間 | 2 ms / 777 ms |
コード長 | 367 bytes |
コンパイル時間 | 12,440 ms |
コンパイル使用メモリ | 224,812 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-17 19:16:16 |
合計ジャッジ時間 | 3,091 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
{-# LANGUAGE OverloadedStrings #-} import Data.Text (Text) import qualified Data.Text as T import qualified Data.Text.IO as T main :: IO () main = solve <$> f >>= T.putStrLn where f = T.words <$> T.getLine solve :: [Text] -> Text solve = f . length . filter (\x -> x == "AC" || x == "NoOut") where f x | x >= 6 = "Win" f 5 = "Draw" f _ = "Lose"