結果
| 問題 |
No.1205 Eye Drops
|
| コンテスト | |
| ユーザー |
umezo
|
| 提出日時 | 2020-08-30 13:10:12 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 512 bytes |
| コンパイル時間 | 3,002 ms |
| コンパイル使用メモリ | 198,204 KB |
| 最終ジャッジ日時 | 2025-01-13 20:55:50 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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+1);
A[0].first=0;
A[0].second=0;
rep(i,n){
cin>>A[i+1].first>>A[i+1].second;
}
sort(ALL(A));
bool b=true;
for(int i=0;i<n;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;
}
umezo