結果
問題 |
No.1829 Möbius Tunnelling
|
ユーザー |
![]() |
提出日時 | 2022-02-05 00:29:20 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 658 bytes |
コンパイル時間 | 1,340 ms |
コンパイル使用メモリ | 165,204 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-11 13:13:50 |
合計ジャッジ時間 | 2,018 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 14 WA * 10 |
ソースコード
#include <bits/stdc++.h> using namespace std; const int mod = 998244353; const int Mod = 1000000007; #define rep(i, n) for (ll i = 0; i < n; i++) #define all(x) (x).begin(),(x).end() const long long INF = 1LL << 60; using ll = long long; using ld = long double; #define v2d(type,H,W,name,value) vector<vector<type>> name(H,vector<type>(W,value)); int main() { ll N; cin >> N; ll a,b,c; cin >> a >> b >> c; if(a==c){ cout << "No" << endl; return 0; } if(b==c){ cout << "Yes" << endl; return 0; } c+=N; if(a<b){ cout << "No" << endl; return 0; } if(b<a){ cout << "Yes" << endl; return 0; } }