結果
| 問題 | No.1205 Eye Drops | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-09-13 23:48:07 | 
| 言語 | OCaml (5.2.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 43 ms / 2,000 ms | 
| コード長 | 297 bytes | 
| コンパイル時間 | 428 ms | 
| コンパイル使用メモリ | 21,700 KB | 
| 実行使用メモリ | 5,504 KB | 
| 最終ジャッジ日時 | 2024-10-09 02:03:38 | 
| 合計ジャッジ時間 | 1,992 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 37 | 
ソースコード
Scanf.scanf "%d %d" (fun n m ->
    let rec loop i pos time =
        if i = m then true else
            let t, p = Scanf.scanf " %d %d" (fun t p -> t, p) in
            if abs (pos - p) <= t - time then loop (i + 1) p t else false
    in
    print_endline @@ if loop 0 0 0 then "Yes" else "No"
)
            
            
            
        