結果
| 問題 |
No.998 Four Integers
|
| コンテスト | |
| ユーザー |
nsy_fuya
|
| 提出日時 | 2020-03-10 21:53:47 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 430 bytes |
| コンパイル時間 | 752 ms |
| コンパイル使用メモリ | 74,040 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-30 23:21:25 |
| 合計ジャッジ時間 | 1,329 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
using namespace std;
typedef long long llint;
llint a,b,c,d;
void solve(){
cin >> a >> b >> c >> d;
string ans="Yes";
llint x[4]={a,b,c,d};
sort(x,x+4);
for(int i=0;i<3;i++){
if(x[i]+1==x[i+1])continue;
else{
ans="No";
break;
}
}
cout << ans << endl;
}
int main(int argc, char *argv[]) {
solve();
return 0;
}
nsy_fuya