結果
| 問題 | No.1205 Eye Drops |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-30 15:33:56 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 498 bytes |
| 記録 | |
| コンパイル時間 | 477 ms |
| コンパイル使用メモリ | 88,252 KB |
| 実行使用メモリ | 9,876 KB |
| 最終ジャッジ日時 | 2026-10-14 16:12:52 |
| 合計ジャッジ時間 | 2,873 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 38 WA * 1 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <map>
using namespace std;
typedef long long ll;
#define rep(i,n) for (int i=0;i < (int)(n);i++)
int main(){
int n,m;
cin >> n >> m;
int pos = 0;
int time = 0;
rep(i,m){
int t,p;
cin >> t >> p;
if (abs(pos-p) > t-time){
cout << "No" << endl;
return 0;
}
time = t;
pos = p;
}
cout << "Yes" << endl;
return 0;
}