結果
問題 | No.1205 Eye Drops |
ユーザー |
|
提出日時 | 2020-08-30 13:03:31 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 142 ms / 2,000 ms |
コード長 | 430 bytes |
コンパイル時間 | 320 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 86,016 KB |
最終ジャッジ日時 | 2024-11-23 20:32:37 |
合計ジャッジ時間 | 3,927 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 37 |
ソースコード
import sysinput = lambda : sys.stdin.readline().rstrip()sys.setrecursionlimit(max(1000, 10**9))write = lambda x: sys.stdout.write(x+"\n")# inputnan,m = list(map(int, input().split()))tp = [list(map(int, input().split())) for _ in range(m)]tp.sort()c = 0ct = 0for t,p in tp:if abs(c-p)>t-ct:ans = Falsebreakc = pct = telse:ans = Trueif ans:print("Yes")else:print("No")