結果
| 問題 |
No.2175 Exciting Combo
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-06 21:21:22 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 181 bytes |
| コンパイル時間 | 472 ms |
| コンパイル使用メモリ | 62,976 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-30 17:03:37 |
| 合計ジャッジ時間 | 1,002 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include<iostream>
using namespace std;
int A[3],B;
int main()
{
cin>>A[0]>>A[1]>>A[2]>>B;
int ans=A[0]+A[1]+A[2]+B;
ans=max(ans,max(A[0],max(A[1],A[2]))*3);
cout<<ans<<endl;
}