結果

問題 No.490 yukiソート
ユーザー aimyaimy
提出日時 2017-04-26 12:41:11
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 202 bytes
コンパイル時間 4,034 ms
コンパイル使用メモリ 157,124 KB
実行使用メモリ 14,416 KB
最終ジャッジ日時 2023-10-11 15:13:40
合計ジャッジ時間 3,339 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,196 KB
testcase_01 WA -
testcase_02 AC 3 ms
7,204 KB
testcase_03 AC 2 ms
7,448 KB
testcase_04 AC 6 ms
11,056 KB
testcase_05 AC 6 ms
11,196 KB
testcase_06 AC 6 ms
11,176 KB
testcase_07 AC 6 ms
11,176 KB
testcase_08 AC 6 ms
11,020 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 2 ms
7,264 KB
testcase_25 AC 2 ms
7,236 KB
testcase_26 AC 2 ms
7,112 KB
testcase_27 AC 3 ms
7,208 KB
testcase_28 AC 3 ms
7,176 KB
testcase_29 AC 2 ms
7,260 KB
testcase_30 AC 2 ms
7,228 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 #

import Data.List

main = getContents >>= putStrLn . unwords . map show . yukisort . map read . tail . words 

yukisort :: [Integer] -> [Integer]
yukisort (a0:as) = foldl (\acc a -> insert a acc) [a0] as
0