結果

問題 No.1205 Eye Drops
ユーザー onsen_manjuuu
提出日時 2020-08-30 23:19:12
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 326 bytes
コンパイル時間 1,600 ms
コンパイル使用メモリ 168,300 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-23 20:59:34
合計ジャッジ時間 3,245 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 36 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>

using namespace std;
using ll = long long;


int main()
{
	int n, m; cin >> n >> m;
	vector<int> t(m+1), p(m+1);
	for(int i = 1; i <= m; i++)cin >> t[i] >> p[i];
	bool ok = true;
	for(int i = 0; i < m; i++) {
		if(t[i+1] - t[i] < abs(p[i+1]-p[i]))ok = false;
	}
	cout << (ok ? "Yes" : "No") << endl;
}
0