結果
| 問題 | No.1205 Eye Drops |
| コンテスト | |
| ユーザー |
kyo1
|
| 提出日時 | 2020-09-11 13:28:00 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 21 ms / 2,000 ms |
| コード長 | 383 bytes |
| 記録 | |
| コンパイル時間 | 1,696 ms |
| コンパイル使用メモリ | 193,604 KB |
| 最終ジャッジ日時 | 2025-01-14 09:35:19 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 37 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N, M;
cin >> N >> M;
int64_t t = 0, p = 0;
for (int i = 0; i < M; i++) {
int64_t tt, pp;
cin >> tt >> pp;
if (tt - t < abs(pp - p)) {
cout << "No" << '\n';
return 0;
}
t = tt, p = pp;
}
cout << "Yes" << '\n';
return 0;
}
kyo1