結果
| 問題 |
No.1205 Eye Drops
|
| コンテスト | |
| ユーザー |
kyo1
|
| 提出日時 | 2020-09-11 13:27:20 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 383 bytes |
| コンパイル時間 | 2,471 ms |
| コンパイル使用メモリ | 191,664 KB |
| 最終ジャッジ日時 | 2025-01-14 09:35:07 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 29 WA * 8 |
ソースコード
#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 << "Yeu" << '\n';
return 0;
}
kyo1