結果
| 問題 | No.1205 Eye Drops |
| コンテスト | |
| ユーザー |
🍮かんプリン
|
| 提出日時 | 2020-08-31 18:23:11 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 2,000 ms |
| コード長 | 519 bytes |
| 記録 | |
| コンパイル時間 | 1,750 ms |
| コンパイル使用メモリ | 164,864 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-23 21:00:09 |
| 合計ジャッジ時間 | 2,588 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 37 |
ソースコード
/**
* @FileName a.cpp
* @Author kanpurin
* @Created 2020.08.31 18:23:03
**/
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
int main() {
int n,m;cin >> n >> m;
int now_pos = 0;
int now_time = 0;
for (int i = 0; i < m; i++) {
int t,p;cin >> t >> p;
if (abs(now_pos-p) <= t-now_time) {
now_time = t;
now_pos = p;
}
else {
puts("No");
return 0;
}
}
puts("Yes");
return 0;
}
🍮かんプリン