結果
| 問題 |
No.1205 Eye Drops
|
| コンテスト | |
| ユーザー |
medo_program05
|
| 提出日時 | 2020-08-30 13:22:15 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 65 ms / 2,000 ms |
| コード長 | 382 bytes |
| コンパイル時間 | 498 ms |
| コンパイル使用メモリ | 65,536 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-23 20:45:19 |
| 合計ジャッジ時間 | 1,801 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 37 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
int main(){
int n,m;
cin >> n >> m;
ll now = 0;
ll tm = 0;
while(m--){
ll t,p;
cin >> t >> p;
if(abs(t-tm) < abs(now-p)){
cout << "No\n";
return 0;
}
now = p;
tm = t;
}
cout << "Yes\n";
return 0;
}
medo_program05