結果
問題 | No.231 めぐるはめぐる (1) |
ユーザー | mazeppa1108 |
提出日時 | 2015-06-26 23:22:45 |
言語 | Haskell (9.8.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 452 bytes |
コンパイル時間 | 2,169 ms |
コンパイル使用メモリ | 166,288 KB |
実行使用メモリ | 7,996 KB |
最終ジャッジ日時 | 2023-09-22 01:38:42 |
合計ジャッジ時間 | 3,666 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 4 ms
7,996 KB |
testcase_01 | AC | 3 ms
7,272 KB |
testcase_02 | AC | 3 ms
7,208 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 3 ms
7,568 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 3 ms
7,016 KB |
testcase_10 | AC | 2 ms
7,136 KB |
testcase_11 | AC | 3 ms
7,040 KB |
testcase_12 | AC | 3 ms
7,736 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 import Debug.Trace main = do n <- readLn exp <- (map . map) (read :: String -> Integer) . 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"