結果

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

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
    int N,M;
    long long P[100000+1]={0},T[100000]={0};
    cin >> N >> M;
    for(int i=1;i<=M;i++){
        cin >> T[i] >> P[M];
    }
    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