結果
| 問題 | No.1205 Eye Drops |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-13 23:48:07 |
| 言語 | OCaml (5.4.1) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 2,000 ms |
| コード長 | 297 bytes |
| 記録 | |
| コンパイル時間 | 227 ms |
| コンパイル使用メモリ | 22,796 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-25 05:28:44 |
| 合計ジャッジ時間 | 1,582 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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"
)