結果
| 問題 | No.1205 Eye Drops |
| コンテスト | |
| ユーザー |
liny_tail
|
| 提出日時 | 2020-11-22 19:25:04 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 287 ms / 2,000 ms |
| コード長 | 362 bytes |
| 記録 | |
| コンパイル時間 | 470 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 22,648 KB |
| 最終ジャッジ日時 | 2026-04-03 15:14:53 |
| 合計ジャッジ時間 | 6,236 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge5_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 37 |
ソースコード
N, M = map(int, input().split())
T = []
P = []
for i in range(M):
t, p = map(int, input().split())
T.append(t)
P.append(p)
pos = 0
tim = 0
for t, p in zip(T, P):
#print('tim:{} pos:{} t-tim:{} p:{}'.format(tim, pos, t-tim, p))
if max(pos - p, p - pos) > t - tim:
break
else:
tim = t
pos = p
else:
print('Yes')
exit(0)
print('No')
liny_tail