結果
| 問題 |
No.998 Four Integers
|
| コンテスト | |
| ユーザー |
LV3zJigVW57oPGy
|
| 提出日時 | 2022-11-13 16:21:07 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 438 bytes |
| コンパイル時間 | 1,759 ms |
| コンパイル使用メモリ | 162,812 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-14 22:42:54 |
| 合計ジャッジ時間 | 2,411 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <stdio.h>
#include <iomanip>
#include <iostream>
#include <string>
#include <algorithm>
int main(){
vector<int> vec(4);
for(int i=0; i<4; i++){
cin >> vec.at(i);
}
sort(vec.begin(),vec.end());
for(int i=1; i<vec.size();i++){
if((vec.at(i)-vec.at(i-1))!=1){
cout << "No";
break;
}
else if(i==(vec.size()-1)){
cout << "Yes";
}
}
}
LV3zJigVW57oPGy