結果
| 問題 |
No.998 Four Integers
|
| コンテスト | |
| ユーザー |
yuma220284
|
| 提出日時 | 2020-03-08 14:20:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 247 bytes |
| コンパイル時間 | 1,423 ms |
| コンパイル使用メモリ | 159,972 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-30 23:20:36 |
| 合計ジャッジ時間 | 2,142 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
int main() {
long long A[4];
cin >> A[0] >> A[1] >> A[2] >> A[3];
sort(A, A + 4);
if (A[0] + 1 == A[1] && A[1] + 1 == A[2] && A[2] + 1 == A[3]) cout << "Yes" << endl;
else cout << "No" << endl;
}
yuma220284