結果

問題 No.1205 Eye Drops
ユーザー medo_program05
提出日時 2020-08-30 13:15:53
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 350 bytes
コンパイル時間 612 ms
コンパイル使用メモリ 65,280 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-23 20:44:15
合計ジャッジ時間 1,835 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 30 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
int main(){
    int n,m;
    cin >> n >> m;
    ll now = 0;
    while(m--){
        ll t,p;
        cin >> t >> p;
        if(abs(t-now) < abs(t-p)){
            cout << "No\n";
            return 0;
        }
        now = p;
    }
    cout << "Yes\n";
    return 0;
}
0