結果
問題 |
No.2175 Exciting Combo
|
ユーザー |
![]() |
提出日時 | 2023-07-19 11:31:39 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 45 ms / 2,000 ms |
コード長 | 412 bytes |
コンパイル時間 | 1,799 ms |
コンパイル使用メモリ | 191,948 KB |
最終ジャッジ日時 | 2025-02-15 15:43:08 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #define _GLIBCXX_DEBUG #else #define Debug(...) void(0) #endif using ll = long long; #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { int a1, a2, a3, b; cin >> a1 >> a2 >> a3 >> b; int ans = 0; ans = max(ans, a1 + a2 + a3 + b); ans = max(ans, a3 + a3 + a3); cout << ans << endl; return 0; }