結果

問題 No.851 テストケース
ユーザー ninoinui
提出日時 2020-05-06 09:35:59
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 366 bytes
コンパイル時間 1,642 ms
コンパイル使用メモリ 171,924 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-28 04:03:32
合計ジャッジ時間 2,522 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
  int n, i = 0;
  string S[4];
  while ((n = getchar()) != -1) {
    if (n == 32) return cout << "\"assert\"" << "\n", 0;
    if (n == 10) i++;
    else S[i] += (char) n;
  }
  int a = stoi(S[1]), b = stoi(S[2]), c = stoi(S[3]);
  set<int> SE = {a + b, b + c, c + a};
  cout << *next(rbegin(SE)) << "\n";
}
0