結果
| 問題 | 
                            No.512 魔法少女の追いかけっこ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2017-05-05 22:33:19 | 
| 言語 | Haskell  (9.10.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 249 bytes | 
| コンパイル時間 | 1,503 ms | 
| コンパイル使用メモリ | 172,288 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-27 05:56:53 | 
| 合計ジャッジ時間 | 2,800 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 53 | 
コンパイルメッセージ
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
ソースコード
-- Try yukicoder
-- author: Leonardone @ NEETSDKASU
main = getContents >>= putStrLn . solve . map read . words
solve (x:y:n:xs) = calc xs where
    calc (i:j:ys)
        | i * y <= j * x = calc (j:ys)
        | otherwise = "NO"
    calc _ = "YES"