結果
問題 |
No.998 Four Integers
|
ユーザー |
![]() |
提出日時 | 2020-03-06 06:19:21 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 428 bytes |
コンパイル時間 | 630 ms |
コンパイル使用メモリ | 74,240 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 02:35:24 |
合計ジャッジ時間 | 1,437 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 RE * 1 |
other | AC * 8 RE * 15 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { vector<int> vc; for (int i = 0; i < 4; i++) { int in; cin >> in; vc.push_back(in); } sort(vc.begin(), vc.end()); for (int i = 0; i < 3; i++) { if (vc.at(i) != vc.at(i + 1) - 1) { printf("No\n"); return 1; } } printf("Yes\n"); return 0; }