結果

問題 No.1829 Möbius Tunnelling
ユーザー gotetengoteten
提出日時 2022-02-05 00:29:20
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 658 bytes
コンパイル時間 1,468 ms
コンパイル使用メモリ 163,972 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-09-02 06:17:57
合計ジャッジ時間 2,667 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 WA -
testcase_03 AC 1 ms
4,380 KB
testcase_04 WA -
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 1 ms
4,376 KB
testcase_10 WA -
testcase_11 AC 1 ms
4,376 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 1 ms
4,376 KB
testcase_18 AC 1 ms
4,376 KB
testcase_19 AC 1 ms
4,380 KB
testcase_20 AC 1 ms
4,380 KB
testcase_21 AC 1 ms
4,376 KB
testcase_22 AC 2 ms
4,380 KB
testcase_23 AC 1 ms
4,380 KB
testcase_24 WA -
testcase_25 AC 1 ms
4,380 KB
testcase_26 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
  }

  

}
0