結果

問題 No.201 yukicoderじゃんけん
ユーザー lvs7klvs7k
提出日時 2018-09-15 09:51:40
言語 Haskell
(9.6.2)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 268 bytes
コンパイル時間 8,036 ms
コンパイル使用メモリ 157,104 KB
実行使用メモリ 12,204 KB
最終ジャッジ日時 2023-09-22 20:49:00
合計ジャッジ時間 9,290 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,120 KB
testcase_01 AC 2 ms
7,152 KB
testcase_02 AC 2 ms
7,036 KB
testcase_03 AC 4 ms
8,440 KB
testcase_04 AC 3 ms
7,852 KB
testcase_05 AC 3 ms
7,820 KB
testcase_06 AC 3 ms
7,656 KB
testcase_07 AC 2 ms
7,316 KB
testcase_08 AC 3 ms
8,288 KB
testcase_09 AC 3 ms
8,304 KB
testcase_10 AC 3 ms
7,792 KB
testcase_11 AC 3 ms
8,372 KB
testcase_12 AC 3 ms
8,248 KB
testcase_13 AC 4 ms
8,240 KB
testcase_14 AC 2 ms
7,400 KB
testcase_15 AC 12 ms
12,204 KB
testcase_16 AC 12 ms
12,176 KB
testcase_17 AC 12 ms
12,156 KB
testcase_18 AC 12 ms
12,148 KB
testcase_19 AC 12 ms
12,172 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 #

module Main where

import Control.Monad

main :: IO ()
main = do
    [sa, pa, _] <- words <$> getLine
    [sb, pb, _] <- words <$> getLine
    case (read pa :: Integer) `compare` (read pb) of
        LT -> putStrLn sb
        GT -> putStrLn sa
        EQ -> print (-1)
0