結果

問題 No.1205 Eye Drops
ユーザー kikage
提出日時 2020-10-07 13:27:51
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 347 bytes
コンパイル時間 562 ms
コンパイル使用メモリ 54,356 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-20 03:24:06
合計ジャッジ時間 2,039 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 36 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
    int N,M;
    int P[100000+1]={0},T[100000+1]={0};
    cin >> N >> M;
    for(int i=1;i<=M;i++){
        cin >> T[i] >> P[i];
    }
    bool  flag=true;
    for(int i=0;i<M;i++){
        if(abs(P[i+1]-P[i])>T[i+1]-T[i])flag=false;
    }
    cout << (flag?"Yes":"No") << endl;
    return 0;
}
0