結果
問題 | No.1205 Eye Drops |
ユーザー |
|
提出日時 | 2020-08-30 13:03:10 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 465 bytes |
コンパイル時間 | 1,789 ms |
コンパイル使用メモリ | 168,528 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-23 20:30:25 |
合計ジャッジ時間 | 3,231 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 36 RE * 1 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(int)n;i++) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int n, m; cin >> n >> m; vector<ll> t(n + 1), p(n + 1); t[0] = 0, p[0] = 0; rep(i, m) { cin >> t[i + 1] >> p[i + 1]; if (t[i + 1] - t[i] < abs(p[i + 1] - p[i])) { cout << "No" << endl; return 0; } } cout << "Yes" << endl; return 0; }