結果
問題 | No.1205 Eye Drops |
ユーザー | umezo |
提出日時 | 2020-08-30 13:21:02 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 88 ms / 2,000 ms |
コード長 | 461 bytes |
コンパイル時間 | 2,519 ms |
コンパイル使用メモリ | 194,256 KB |
最終ジャッジ日時 | 2025-01-13 21:05:27 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 37 |
ソースコード
#define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(v) v.begin(), v.end() typedef long long ll; #include <bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; vector<ll> T(m+1); vector<ll> P(m+1); T[0]=0; P[0]=0; rep(i,m){ cin>>T[i+1]>>P[i+1]; } bool b=true; for(int i=0;i<m;i++){ if(T[i+1]-T[i]<abs(P[i+1]-P[i])) b=false; } if(b) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }