結果
問題 |
No.998 Four Integers
|
ユーザー |
![]() |
提出日時 | 2020-03-16 22:50:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 392 bytes |
コンパイル時間 | 638 ms |
コンパイル使用メモリ | 70,648 KB |
実行使用メモリ | 13,644 KB |
最終ジャッジ日時 | 2024-11-28 04:20:27 |
合計ジャッジ時間 | 11,917 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 5 RE * 16 TLE * 2 |
ソースコード
#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; }