結果

問題 No.998 Four Integers
ユーザー masutech16
提出日時 2020-03-02 17:32:52
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 573 bytes
コンパイル時間 1,598 ms
コンパイル使用メモリ 172,208 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-13 21:15:07
合計ジャッジ時間 2,155 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 15 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ALL(v) (v).begin(), (v).end()
#define coutd(n) cout << fixed << setprecision(n)
#define ll long long int
#define vl vector<ll>
#define vi vector<int>
const int INF = 2147483647;
const ll MOD = 1000000007;

using namespace std;

int main() {
  vi a(4);
  REP(i, 4) { cin >> a[i]; }
  sort(ALL(a));
  if (a[0] + 1 == a[1] && a[1] + 1 == a[2] && a[3] + 1 == a[4]) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
0