結果
問題 |
No.1205 Eye Drops
|
ユーザー |
![]() |
提出日時 | 2020-08-30 13:14:30 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 331 bytes |
コンパイル時間 | 588 ms |
コンパイル使用メモリ | 65,444 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-23 20:42:07 |
合計ジャッジ時間 | 1,735 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 30 WA * 7 |
ソースコード
#include <iostream> #include <vector> using namespace std; int main(){ int n,m; cin >> n >> m; int now = 0; while(m--){ int t,p; cin >> t >> p; if(abs(t-now) < abs(t-p)){ cout << "No\n"; return 0; } now = p; } cout << "Yes\n"; return 0; }