結果
問題 | No.998 Four Integers |
ユーザー |
![]() |
提出日時 | 2022-07-08 22:41:53 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 282 bytes |
コンパイル時間 | 3,580 ms |
コンパイル使用メモリ | 249,640 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-28 07:24:34 |
合計ジャッジ時間 | 4,713 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ int N = 4; vector<int> S(N); for(int i=0;i<4;i++) cin>>S[i]; sort(S.begin(),S.end()); if(S[0] == S[1]-1 && S[1] == S[2]-1 && S[2] == S[3]-1) cout<<"Yes"<<endl; else cout<<"No"<<endl; }