結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
t33f
|
| 提出日時 | 2019-07-26 22:32:39 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 356 bytes |
| コンパイル時間 | 675 ms |
| コンパイル使用メモリ | 73,828 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-02 07:58:53 |
| 合計ジャッジ時間 | 1,427 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 16 WA * 4 |
ソースコード
#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;
}
}
t33f