結果

問題 No.998 Four Integers
ユーザー bdqp ☪️
提出日時 2020-03-31 01:47:21
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 360 bytes
コンパイル時間 1,511 ms
コンパイル使用メモリ 171,492 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-23 10:56:04
合計ジャッジ時間 2,472 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 14 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
// 条件を見落としていませんか?
int main () {
    set<int> s;
    for (int i = 0; i < 4; i++) {
        int a;
        cin >> a;
        s.insert(a);
    }
    if (s.size() == 4 && *(s.end())-*(s.begin()) == 3) {
        puts("Yes");
    }
    else {
        puts("No");
    }
}
0