結果
問題 | No.231 めぐるはめぐる (1) |
ユーザー | mazeppa1108 |
提出日時 | 2015-06-26 23:12:38 |
言語 | Haskell (9.8.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 411 bytes |
コンパイル時間 | 2,493 ms |
コンパイル使用メモリ | 166,112 KB |
実行使用メモリ | 8,024 KB |
最終ジャッジ日時 | 2023-09-22 01:32:47 |
合計ジャッジ時間 | 2,702 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
8,024 KB |
testcase_01 | AC | 2 ms
7,332 KB |
testcase_02 | AC | 3 ms
7,196 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 3 ms
7,644 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 2 ms
7,020 KB |
testcase_10 | AC | 3 ms
7,288 KB |
testcase_11 | AC | 2 ms
7,056 KB |
testcase_12 | AC | 3 ms
7,716 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 Data.List import Control.Applicative import Control.Monad main = do n <- readLn exp <- (map . map) read . map words <$> replicateM n getLine let exp' = head . reverse . sort $ map (\x -> (fst x, snd x !! 0 - 30000 * (snd x !! 1))) $ zip [1..] exp if snd exp' >= 500000 then do putStrLn "YES" replicateM_ 6 (print $ fst exp') else putStrLn "NO"