結果
| 問題 |
No.1205 Eye Drops
|
| コンテスト | |
| ユーザー |
sakaki_tohru
|
| 提出日時 | 2020-08-30 13:03:59 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 82 ms / 2,000 ms |
| コード長 | 388 bytes |
| コンパイル時間 | 693 ms |
| コンパイル使用メモリ | 66,048 KB |
| 最終ジャッジ日時 | 2025-01-13 20:50:20 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 37 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int n,m;cin>>n>>m;
int now=0;
long long time=0;
for(int i=0;i<m;i++){
long long t;
int p;cin>>t>>p;
if(t-time>=abs(p-now)){
time=t;
now=p;
}
else{
cout<<"No"<<endl;
return 0;
}
}
cout<<"Yes"<<endl;
return 0;
}
sakaki_tohru