結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-29 21:06:15 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 686 bytes |
| コンパイル時間 | 1,372 ms |
| コンパイル使用メモリ | 119,584 KB |
| 最終ジャッジ日時 | 2025-01-21 02:13:03 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 18 WA * 2 |
ソースコード
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <optional>
#include <queue>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
int main() {
string n, s;
getline(cin, n);
getline(cin, s);
if (s.find(' ') != string::npos) {
cout << "assert" << endl;
return 0;
}
int64_t a0 = stoll(s);
int64_t a1, a2;
cin >> a1 >> a2;
vector<int64_t> ss = {a0 + a1, a0 + a2, a1 + a2};
sort(ss.rbegin(), ss.rend());
cout << (ss[0] == ss[1] ? ss[2] : ss[1]) << endl;
return 0;
}