結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
ninoinui
|
| 提出日時 | 2020-05-06 09:37:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 3,153 ms |
| コード長 | 368 bytes |
| コンパイル時間 | 1,578 ms |
| コンパイル使用メモリ | 172,336 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 04:05:00 |
| 合計ジャッジ時間 | 2,376 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, i = 0;
string S[4];
while ((n = getchar()) != -1) {
if (n == 32) return cout << "\"assert\"" << "\n", 0;
if (n == 10) i++;
else S[i] += (char) n;
}
long a = stol(S[1]), b = stol(S[2]), c = stol(S[3]);
set<long> SE = {a + b, b + c, c + a};
cout << *next(rbegin(SE)) << "\n";
}
ninoinui