結果
| 問題 | No.1205 Eye Drops |
| コンテスト | |
| ユーザー |
r_ishida
|
| 提出日時 | 2026-03-13 01:29:36 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 487 bytes |
| 記録 | |
| コンパイル時間 | 219 ms |
| コンパイル使用メモリ | 85,148 KB |
| 実行使用メモリ | 80,988 KB |
| 最終ジャッジ日時 | 2026-03-13 01:29:41 |
| 合計ジャッジ時間 | 3,568 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 WA * 4 |
ソースコード
import math
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
n, m = MI()
c = 0
ct = 0
ans = "Yes"
for i in range(m):
t, p = MI()
if abs(c-p) <= t-ct:
cp = p
ct = t
else:
ans = "No"
print(ans)
r_ishida