結果
問題 |
No.1205 Eye Drops
|
ユーザー |
![]() |
提出日時 | 2020-11-21 13:10:13 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 23 ms / 2,000 ms |
コード長 | 373 bytes |
コンパイル時間 | 3,054 ms |
コンパイル使用メモリ | 191,692 KB |
最終ジャッジ日時 | 2025-01-16 03:54:40 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 37 |
ソースコード
#include <bits/stdc++.h> using namespace std; int t[100010]; int p[100010]; int main(){ int n,m; cin>>n>>m; int temp,pla; int nowt=0; int nowp=0; for(int i=0;i<m;i++){ cin>>temp>>pla; if((temp-nowt)>=abs(nowp-pla)){ nowt=temp; nowp=pla; } else{ cout<<"No"<<endl; return 0; } } cout<<"Yes"<<endl; return 0; }