結果
| 問題 | No.2175 Exciting Combo |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-06 21:28:37 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 412 bytes |
| 記録 | |
| コンパイル時間 | 636 ms |
| コンパイル使用メモリ | 115,164 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-06-29 05:44:06 |
| 合計ジャッジ時間 | 1,464 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <sstream>
#include <numeric>
#include <string>
#include <vector>
int main()
{
int A1, A2, A3, B;
std::cin >> A1 >> A2 >> A3 >> B;
int bestx3 = 3 * std::max({ A1, A2, A3 });
int combo = A1 + A2 + A3 + B;
int ans = std::max(bestx3, combo);
std::cout << ans << '\n';
}