結果
問題 |
No.231 めぐるはめぐる (1)
|
ユーザー |
|
提出日時 | 2015-06-26 22:30:31 |
言語 | Haskell (9.10.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 374 bytes |
コンパイル時間 | 2,281 ms |
コンパイル使用メモリ | 176,000 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-07 17:44:34 |
合計ジャッジ時間 | 3,509 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 3 WA * 8 |
コンパイルメッセージ
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
ソースコード
import Control.Monad import Control.Applicative main :: IO () main = do n <- readLn dat <- replicateM n $ map read . words <$> getLine let ans = [ i | (i, [g, d]) <- zip [1..] dat , (g - 30000 * d) * 6 >= 1000000 ] case ans of [] -> putStrLn "NO" (i:_) -> do putStrLn "YES" replicateM_ 6 $ print i return ()