結果
| 問題 |
No.2175 Exciting Combo
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-06 21:52:27 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 19 ms / 2,000 ms |
| コード長 | 339 bytes |
| コンパイル時間 | 1,784 ms |
| コンパイル使用メモリ | 191,504 KB |
| 最終ジャッジ日時 | 2025-02-09 23:50:47 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
void fast_io() {
cin.tie(nullptr)->sync_with_stdio(false);
}
void solve() {
int A[3], B;
cin >> A[0] >> A[1] >> A[2] >> B;
cout << max(3 * A[2], A[0] + A[1] + A[2] + B) << '\n';
}
int main() {
fast_io();
int t = 1;
// cin >> t;
while (t--) solve();
}