結果
問題 | No.851 テストケース |
ユーザー |
![]() |
提出日時 | 2020-02-01 08:40:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 3,153 ms |
コード長 | 393 bytes |
コンパイル時間 | 1,776 ms |
コンパイル使用メモリ | 175,624 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-18 19:43:29 |
合計ジャッジ時間 | 2,650 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { string N, S; getline(cin, N), getline(cin, S); if ((int)S.find(" ") == -1) { long A = atol(S.c_str()), B, C; cin >> B >> C; vector<long> V = {A + B, B + C, C + A}; sort(V.rbegin(), V.rend()); V.erase(unique(V.begin(), V.end()), V.end()); cout << V.at(1) << "\n"; } else cout << "\"assert\"" << "\n"; }