結果

問題 No.998 Four Integers
ユーザー rarira2010
提出日時 2022-12-18 22:53:31
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 326 bytes
コンパイル時間 1,536 ms
コンパイル使用メモリ 171,280 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-17 23:58:29
合計ジャッジ時間 2,373 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)


int main() {
  int a,b,c,d;
  std::cin >> a>>b>>c>>d;
  std::vector<int> v={a,b,c,d},ans={1,2,3,4};
  sort(v.begin(),v.end());
  if (v==ans) {
    std::cout << "Yes" << '\n';
  } else std::cout << "No" << '\n';
  return 0;
}
0