結果
問題 |
No.1205 Eye Drops
|
ユーザー |
|
提出日時 | 2020-09-01 20:36:49 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 579 bytes |
コンパイル時間 | 1,656 ms |
コンパイル使用メモリ | 165,392 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-23 21:01:59 |
合計ジャッジ時間 | 2,596 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 14 WA * 23 |
ソースコード
#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){ int t,p; cin>>t>>p; if(t<p){ cout<<"No"<<endl; return 0; } } cout<<"Yes"<<endl; return 0; }