結果
問題 | No.851 テストケース |
ユーザー | t33f |
提出日時 | 2019-07-26 22:36:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 3,153 ms |
コード長 | 391 bytes |
コンパイル時間 | 638 ms |
コンパイル使用メモリ | 74,000 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-02 08:00:44 |
合計ジャッジ時間 | 1,293 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#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 { long long a = atol(s.c_str()), b, c; cin >> b >> c; set<long long> s({a+b, b+c, c+a}); cout << *next(s.rbegin()) << endl; } }