結果
| 問題 |
No.998 Four Integers
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-29 14:29:05 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 466 bytes |
| コンパイル時間 | 1,470 ms |
| コンパイル使用メモリ | 171,292 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-13 19:58:55 |
| 合計ジャッジ時間 | 2,263 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 15 WA * 8 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int a,b,c,d;
cin>>a>>b>>c>>d;
vector<int> numeros {a,b,c,d};
sort(numeros.begin(),numeros.end());
bool no_es = true;
for (int i = 0; i < numeros.size()-1; i++)
{
if(numeros[i+1]!=(numeros[i]+1)){
no_es=false;
cout<<"No";
return 0;
}
}
cout<<"Si";
return 0;
}