結果
| 問題 | No.1205 Eye Drops |
| コンテスト | |
| ユーザー |
kit84
|
| 提出日時 | 2020-10-10 20:52:56 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 165 ms / 2,000 ms |
| コード長 | 653 bytes |
| 記録 | |
| コンパイル時間 | 333 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 36,184 KB |
| 最終ジャッジ日時 | 2026-04-03 01:36:11 |
| 合計ジャッジ時間 | 5,154 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 37 |
ソースコード
import sys
input = sys.stdin.readline
# from collections import deque
def linput(ty=int, cnv=list):
return cnv(map(ty, input().split()))
def vinput(rep=1, ty=int, cnv=list):
return cnv(ty(input().rstrip()) for _ in "*"*rep)
def gcd(n,m):
while m: n,m = m, n%m
return n
def lcm(n,m): return n*m//gcd(n,m)
def main():
N,M = linput()
x = 0
t = 0
res = 1
for _ in range(M):
T,P = linput()
if abs(P-x) > T-t:
res = 0
break
x,t = P,T
sT = "No Yes".split()
print(sT[res])
# for vR in mR:
# print(*vR, sep="")
if __name__ == "__main__":
main()
kit84