結果
| 問題 | No.998 Four Integers |
| コンテスト | |
| ユーザー |
ldsyb
|
| 提出日時 | 2026-09-12 00:14:14 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 396µs | |
| コード長 | 455 bytes |
| 記録 | |
| コンパイル時間 | 4,015 ms |
| コンパイル使用メモリ | 380,344 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-09-12 00:14:21 |
| 合計ジャッジ時間 | 5,721 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using namespace chrono;
#if __has_include(<atcoder/all>)
#include <atcoder/all>
using namespace atcoder;
#endif
int main() {
int64_t a, b, c, d;
cin >> a >> b >> c >> d;
vector<int64_t> xs = {a, b, c, d};
ranges::sort(xs);
bool flag = true;
for (int64_t i = 0; i < 3; i++) {
flag &= xs[i] + 1 == xs[i + 1];
}
cout << (flag ? "Yes" : "No") << endl;
return 0;
}
ldsyb