結果

問題 No.851 テストケース
ユーザー t33f
提出日時 2019-07-26 22:33:39
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 379 bytes
コンパイル時間 821 ms
コンパイル使用メモリ 72,696 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-02 07:59:58
合計ジャッジ時間 1,506 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cassert>
#include <iostream>
#include <cstdlib>
#include <set>
using namespace std;
int main() {
    int n; cin >> n >> ws;
    string s; getline(cin, s);
    if (s.find(' ') != string::npos) cout << "\"assert\"\n";
    else {
        int a = atoi(s.c_str()), b, c; cin >> b >> c;
        set<int> s({a+b, b+c, c+a});
        cout << *next(s.rbegin()) << endl;
    }
}
0