結果
| 問題 |
No.998 Four Integers
|
| コンテスト | |
| ユーザー |
cumin
|
| 提出日時 | 2020-02-28 21:40:37 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 396 bytes |
| コンパイル時間 | 1,426 ms |
| コンパイル使用メモリ | 170,240 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-30 23:05:43 |
| 合計ジャッジ時間 | 2,139 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n)for(long long i=0;i<(n);i++)
using namespace std;
typedef long long ll;
const int MOD=1e9+7;
const int MAX = 510000;
const double pi=acos(-1);
int main(){
vector<int>x(4);
rep(i,4) cin >> x[i];
sort(x.begin(),x.end());
rep(i,3){
if(x[i+1]!=x[i]+1){
cout << "No" << endl;
return 0;
}
}
cout << "Yes" << endl;
return 0;
}
cumin