結果
| 問題 |
No.1205 Eye Drops
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-11 22:34:21 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 385 bytes |
| コンパイル時間 | 842 ms |
| コンパイル使用メモリ | 68,864 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-27 16:15:46 |
| 合計ジャッジ時間 | 2,933 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 36 WA * 1 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
vector<int> a(m + 1), b(m + 1);
a[0] = 0, b[0] = 0;
for (int i = 1; i <= m; ++i) {
cin >> a[i] >> b[i];
if (a[i] - a[i - 1] < abs(b[i] - b[i - 1])) {
cout << "No" << endl;
return 0;
}
}
cout << "Yes" << endl;
}