結果
| 問題 |
No.998 Four Integers
|
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2023-06-21 00:49:35 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 1,000 ms |
| コード長 | 435 bytes |
| コンパイル時間 | 1,919 ms |
| コンパイル使用メモリ | 196,312 KB |
| 最終ジャッジ日時 | 2025-02-14 23:44:18 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "settings/debug.cpp"
#define _GLIBCXX_DEBUG
#else
#define Debug(...) void(0)
#endif
using ll = long long;
#define rep(i, n) for (int i = 0; i < (n); ++i)
int main() {
vector<int> a(4);
rep(i, 4) cin >> a[i];
sort(a.begin(), a.end());
bool ok = true;
rep(i, 3) if (a[i] + 1 != a[i + 1]) ok = false;
cout << (ok ? "Yes" : "No") << endl;
return 0;
}
a01sa01to