結果

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

テストケース

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

ソースコード

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> 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