結果
| 問題 |
No.1205 Eye Drops
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-09 17:11:08 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 2,000 ms |
| コード長 | 309 bytes |
| コンパイル時間 | 862 ms |
| コンパイル使用メモリ | 66,072 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-15 20:18:31 |
| 合計ジャッジ時間 | 2,865 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 37 |
コンパイルメッセージ
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
6 | main()
| ^~~~
ソースコード
#include<iostream>
#include<algorithm>
using namespace std;
int N,M;
long now,T,np,P;
main()
{
cin>>N>>M;
for(;M--;)
{
cin>>T>>P;
if(T-now<abs(np-P))
{
cout<<"No"<<endl;
return 0;
}
now=T;
np=P;
}
cout<<"Yes"<<endl;
}