結果

問題 No.1205 Eye Drops
ユーザー kaede2020
提出日時 2020-09-01 20:39:00
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 578 bytes
コンパイル時間 1,596 ms
コンパイル使用メモリ 166,676 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-23 21:02:08
合計ジャッジ時間 2,769 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 14 WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
template <typename T> bool chmax(T &u, const T z) { if (u < z) {u = z; return true;} else return false; }
template <typename T> bool chmin(T &u, const T z) { if (u > z) {u = z; return true;} else return false; }
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long 
typedef pair<ll, ll> P;
//const int MAX=10100;
const ll INF=1LL<<60;

int main(){
  int n,m;
  cin>>n>>m;
  rep(i,m){
    ll t,p;
    cin>>t>>p;
    if(t<p){
      cout<<"No"<<endl;
      return 0;
    }
  }
  cout<<"Yes"<<endl;
  return 0;
}
  
0