結果

問題 No.851 テストケース
ユーザー toto6114toto6114
提出日時 2019-09-27 19:42:21
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 518 bytes
コンパイル時間 871 ms
コンパイル使用メモリ 88,052 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-25 01:15:30
合計ジャッジ時間 1,888 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 WA -
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 2 ms
4,348 KB
testcase_07 AC 2 ms
4,348 KB
testcase_08 AC 2 ms
4,348 KB
testcase_09 AC 2 ms
4,348 KB
testcase_10 AC 1 ms
4,348 KB
testcase_11 AC 2 ms
4,348 KB
testcase_12 AC 1 ms
4,348 KB
testcase_13 AC 1 ms
4,348 KB
testcase_14 AC 2 ms
4,348 KB
testcase_15 AC 2 ms
4,348 KB
testcase_16 AC 2 ms
4,348 KB
testcase_17 AC 2 ms
4,348 KB
testcase_18 AC 1 ms
4,348 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<set>
#include<map>
using namespace std;
typedef long long ll;
int main() {
  int n,a[3]={};
  cin >> n;
  string s;
  getline(cin,s);
  for(auto p:s) {
      if(p==' ') {
          cout << "assert" << endl;
          return 0;
      }
  }
  for(int i=0; i<3; i++) {
      cin >> a[i];
  }
  set<int> st;
  st.insert(a[0]+a[1]);
  st.insert(a[0]+a[2]);
  st.insert(a[1]+a[2]);
  auto it=st.end();
  it--;
  it--;
  cout << *it << endl;
}
0