結果
| 問題 | No.998 Four Integers |
| コンテスト | |
| ユーザー |
omgitskuu
|
| 提出日時 | 2020-03-16 22:57:06 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 422 bytes |
| 記録 | |
| コンパイル時間 | 353 ms |
| コンパイル使用メモリ | 80,520 KB |
| 実行使用メモリ | 9,920 KB |
| 最終ジャッジ日時 | 2026-10-01 06:24:53 |
| 合計ジャッジ時間 | 3,956 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 2 WA * 3 RE * 18 |
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
string answer;
int l, i=0, a[10];
while(cin>>l){
a[i] = l;
i++;
}
sort(a, a+l);
answer = "Yes";
for (int i = 0; i < 3; ++i)
{
if (a[i]+1 != a[i+1]){ answer = "No"; break;}
}
cout <<answer<< endl;
return 0;
}
omgitskuu