結果
| 問題 |
No.998 Four Integers
|
| コンテスト | |
| ユーザー |
mito_nya
|
| 提出日時 | 2020-04-26 12:44:23 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 209 bytes |
| コンパイル時間 | 1,512 ms |
| コンパイル使用メモリ | 169,980 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-16 21:58:09 |
| 合計ジャッジ時間 | 2,539 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 15 WA * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> S(4);
sort(S.begin(),S.end());
if(S.at(3)==S.at(2)+1 && S.at(2)==S.at(1)+1 && S.at(1)==S.at(0)+1) cout<<"Yes";
else cout<<"No";
}
mito_nya