結果
問題 |
No.851 テストケース
|
ユーザー |
|
提出日時 | 2020-12-21 10:28:30 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 3,153 ms |
コード長 | 357 bytes |
コンパイル時間 | 1,647 ms |
コンパイル使用メモリ | 171,900 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-21 12:42:49 |
合計ジャッジ時間 | 2,475 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n >> ws; string s; getline(cin, s); if (s.find(' ') != string::npos) cout << "\"assert\"\n"; else { int64_t a = atol(s.c_str()); int64_t b, c; cin >> b >> c; set<int64_t> se({a + b, b + c, c + a}); cout << *next(se.rbegin()) << '\n'; } return 0; }