結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,668 KB
testcase_01 AC 3 ms
6,800 KB
testcase_02 AC 3 ms
6,776 KB
testcase_03 AC 4 ms
7,032 KB
testcase_04 WA -
testcase_05 AC 3 ms
6,944 KB
testcase_06 AC 3 ms
6,896 KB
testcase_07 AC 3 ms
6,716 KB
testcase_08 AC 3 ms
7,400 KB
testcase_09 AC 4 ms
7,376 KB
testcase_10 AC 3 ms
6,868 KB
testcase_11 AC 3 ms
7,320 KB
testcase_12 AC 4 ms
7,300 KB
testcase_13 AC 3 ms
7,368 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 6 ms
10,084 KB
testcase_17 AC 5 ms
10,020 KB
testcase_18 AC 12 ms
11,312 KB
testcase_19 AC 7 ms
11,316 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 :: Int
        pb' = read pb :: Int
0