結果
| 問題 | No.998 Four Integers |
| コンテスト | |
| ユーザー |
tokutaro
|
| 提出日時 | 2020-03-06 06:19:21 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 428 bytes |
| 記録 | |
| コンパイル時間 | 513 ms |
| コンパイル使用メモリ | 89,964 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-01 13:02:20 |
| 合計ジャッジ時間 | 1,694 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 1 |
| other | AC * 8 RE * 15 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
vector<int> vc;
for (int i = 0; i < 4; i++) {
int in;
cin >> in;
vc.push_back(in);
}
sort(vc.begin(), vc.end());
for (int i = 0; i < 3; i++) {
if (vc.at(i) != vc.at(i + 1) - 1) {
printf("No\n");
return 1;
}
}
printf("Yes\n");
return 0;
}
tokutaro