結果
問題 | No.2175 Exciting Combo |
ユーザー |
|
提出日時 | 2023-01-06 21:28:37 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 412 bytes |
コンパイル時間 | 921 ms |
コンパイル使用メモリ | 99,892 KB |
最終ジャッジ日時 | 2025-02-09 23:38:51 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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';}