結果
問題 | No.1205 Eye Drops |
ユーザー |
![]() |
提出日時 | 2020-08-30 13:06:30 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 475 bytes |
コンパイル時間 | 2,577 ms |
コンパイル使用メモリ | 198,192 KB |
最終ジャッジ日時 | 2025-01-13 20:53:26 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 36 WA * 1 |
ソースコード
#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<pair<ll,ll>> A(n); rep(i,n){ cin>>A[i].first>>A[i].second; } sort(ALL(A)); bool b=true; for(int i=0;i<n-1;i++){ if(A[i+1].first-A[i].first<A[i+1].second-A[i].second) b=false; } if(b) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }