結果
問題 | No.205 マージして辞書順最小 |
ユーザー | gigurururu |
提出日時 | 2015-05-10 19:52:01 |
言語 | Haskell (9.8.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 288 bytes |
コンパイル時間 | 10,843 ms |
コンパイル使用メモリ | 163,904 KB |
実行使用メモリ | 9,228 KB |
最終ジャッジ日時 | 2023-09-20 01:39:17 |
合計ジャッジ時間 | 11,742 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
7,280 KB |
testcase_01 | AC | 3 ms
7,340 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | RE | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 6 ms
9,228 KB |
testcase_13 | AC | 4 ms
8,820 KB |
testcase_14 | WA | - |
testcase_15 | AC | 3 ms
7,328 KB |
testcase_16 | AC | 2 ms
7,284 KB |
testcase_17 | AC | 2 ms
7,352 KB |
testcase_18 | AC | 2 ms
7,476 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
ソースコード
import Control.Applicative import qualified Data.Set as S f set | S.null set = [] | t=="z" = h:f set' | otherwise = h:(f $ S.insert t set') where ((h:t),set') = S.deleteFindMin set main = do n:s <- lines <$> getContents putStrLn $ f $ S.fromList $ map (++"z") s