結果

問題 No.201 yukicoderじゃんけん
ユーザー Michae'GonMichae'Gon
提出日時 2015-07-19 04:59:22
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 265 bytes
コンパイル時間 582 ms
コンパイル使用メモリ 157,584 KB
実行使用メモリ 11,284 KB
最終ジャッジ日時 2023-09-22 19:11:20
合計ジャッジ時間 1,660 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
6,684 KB
testcase_01 AC 3 ms
6,748 KB
testcase_02 AC 2 ms
6,780 KB
testcase_03 AC 3 ms
7,144 KB
testcase_04 WA -
testcase_05 AC 3 ms
6,928 KB
testcase_06 AC 2 ms
6,916 KB
testcase_07 AC 3 ms
6,748 KB
testcase_08 AC 3 ms
7,320 KB
testcase_09 AC 3 ms
7,404 KB
testcase_10 AC 2 ms
6,880 KB
testcase_11 AC 4 ms
7,376 KB
testcase_12 AC 3 ms
7,276 KB
testcase_13 AC 3 ms
7,376 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 5 ms
10,016 KB
testcase_17 AC 5 ms
10,036 KB
testcase_18 AC 12 ms
11,276 KB
testcase_19 AC 12 ms
11,284 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 #

main = getContents >>= putStrLn . solve . map words . lines

solve :: [[String]] -> String
solve [(sa : pa : _), (sb : pb : _)]
    | pa < pb = sb
    | pa > pb = sa
    | otherwise = "-1"
    where
        pa' = read pa :: Integer
        pb' = read pb :: Integer
0