結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-13 01:40:29 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 3,153 ms |
| コード長 | 494 bytes |
| コンパイル時間 | 2,066 ms |
| コンパイル使用メモリ | 199,240 KB |
| 最終ジャッジ日時 | 2025-01-11 03:25:07 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(int)(n); i++)
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
string s;
getline(cin, s); // newline
getline(cin, s);
if (count(s.begin(), s.end(), ' ') > 1)
cout << "\"assert\"" << endl;
else {
long long a, b, c;
a = stoll(s);
cin >> b >> c;
set<long long> sum { a + b, b + c, c + a};
cout << *++sum.rbegin() << endl;
}
return 0;
}