結果
問題 |
No.1205 Eye Drops
|
ユーザー |
![]() |
提出日時 | 2021-02-08 23:55:23 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 383 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 24,192 KB |
最終ジャッジ日時 | 2024-07-06 04:23:17 |
合計ジャッジ時間 | 3,471 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 14 WA * 23 |
ソースコード
import sys input = sys.stdin.buffer.readline sys.setrecursionlimit(10 ** 7) def main(): N, M = map(int, input().split()) TP = tuple(tuple(map(int, input().split())) for _ in range(M)) now = 0 for t, p in TP: move = abs(p - now) if move > t: return False now = p return True if main(): print("Yes") else: print("No")