結果
問題 | No.1205 Eye Drops |
ユーザー |
![]() |
提出日時 | 2020-10-10 20:52:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 155 ms / 2,000 ms |
コード長 | 653 bytes |
コンパイル時間 | 81 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-20 16:58:43 |
合計ジャッジ時間 | 3,030 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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()