結果

問題 No.2175 Exciting Combo
ユーザー hiroshibtchiroshibtc
提出日時 2023-01-20 06:36:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 368 bytes
コンパイル時間 456 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 8,000 KB
最終ジャッジ日時 2023-09-05 01:36:35
合計ジャッジ時間 1,300 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 14 ms
7,884 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 15 ms
7,940 KB
testcase_08 AC 15 ms
7,948 KB
testcase_09 AC 15 ms
7,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#入力された数字を受け取る
A1,A2,A3,B = map(int,input().split())

#A1,A2,A3,Bの値を使って敵に与えられるダメージの最大値を求める
ans = 0
for i in range(3):
    for j in range(3):
        for k in range(3):
            if i != j and j != k and k != i:
                ans = max(ans,A1*i+A2*j+A3*k+B)
#答えを出力する
print(ans)
0