結果

問題 No.365 ジェンガソート
ユーザー LeonardoneLeonardone
提出日時 2016-05-01 06:28:36
言語 Haskell
(9.8.2)
結果
AC  
実行時間 180 ms / 2,000 ms
コード長 449 bytes
コンパイル時間 1,414 ms
コンパイル使用メモリ 173,824 KB
実行使用メモリ 34,816 KB
最終ジャッジ日時 2024-04-20 06:52:28
合計ジャッジ時間 5,522 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 1 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
testcase_08 AC 1 ms
5,376 KB
testcase_09 AC 1 ms
5,376 KB
testcase_10 AC 1 ms
5,376 KB
testcase_11 AC 1 ms
5,376 KB
testcase_12 AC 1 ms
5,376 KB
testcase_13 AC 2 ms
5,376 KB
testcase_14 AC 1 ms
5,376 KB
testcase_15 AC 1 ms
5,376 KB
testcase_16 AC 144 ms
29,184 KB
testcase_17 AC 171 ms
33,536 KB
testcase_18 AC 17 ms
9,856 KB
testcase_19 AC 156 ms
33,408 KB
testcase_20 AC 51 ms
16,256 KB
testcase_21 AC 38 ms
13,952 KB
testcase_22 AC 141 ms
28,800 KB
testcase_23 AC 72 ms
19,072 KB
testcase_24 AC 126 ms
27,776 KB
testcase_25 AC 36 ms
13,952 KB
testcase_26 AC 88 ms
21,120 KB
testcase_27 AC 165 ms
34,432 KB
testcase_28 AC 92 ms
21,120 KB
testcase_29 AC 150 ms
32,896 KB
testcase_30 AC 96 ms
20,992 KB
testcase_31 AC 45 ms
14,976 KB
testcase_32 AC 42 ms
14,464 KB
testcase_33 AC 165 ms
34,560 KB
testcase_34 AC 29 ms
12,800 KB
testcase_35 AC 130 ms
28,032 KB
testcase_36 AC 170 ms
34,816 KB
testcase_37 AC 168 ms
34,560 KB
testcase_38 AC 170 ms
34,816 KB
testcase_39 AC 169 ms
34,560 KB
testcase_40 AC 180 ms
34,688 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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

ソースコード

diff #

-- yukicoder My Practice
-- author: Leonardone @ NEETSDKASU

main = print . snd . foldl f (0, 0) . map read . words =<< (getLine >> getLine)
    where
        f tp nm = 
            if nm > fst tp
                then
                    (nm, snd tp)
                else
                    if nm > snd tp
                        then
                            (fst tp, nm)
                        else
                            tp
            
0