結果

問題 No.851 テストケース
ユーザー YamaKasaYamaKasa
提出日時 2019-08-23 16:03:41
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 525 bytes
コンパイル時間 2,061 ms
コンパイル使用メモリ 170,064 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-03 17:19:07
合計ジャッジ時間 3,010 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
  string N;
  getline(cin, N);
  vector<ll> A(3);
  string s;
  for (int i = 0; i < 3; i++) {
    getline(cin, s);
    for (int j = 0; j < s.length(); j++) {
      if (s[j] == ' ') {
        cout << "assert\n";
        return 0;
      }
    }
    A[i] = atoll(s.c_str());
  }
  set<ll, greater<ll>> p;
  p.insert(A[0] + A[1]);
  p.insert(A[0] + A[2]);
  p.insert(A[1] + A[2]);
  auto it = p.begin();
  it++;
  cout << *it << "\n";
  return 0;
}
0