結果

問題 No.2175 Exciting Combo
ユーザー Yoshitada IkedaYoshitada Ikeda
提出日時 2023-01-18 15:30:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 934 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 8,028 KB
最終ジャッジ日時 2023-09-02 10:03:37
合計ジャッジ時間 1,695 ms
ジャッジサーバーID
(参考情報)
judge13 / judge16
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,828 KB
testcase_01 AC 15 ms
7,788 KB
testcase_02 AC 14 ms
8,028 KB
testcase_03 AC 15 ms
7,816 KB
testcase_04 AC 15 ms
7,796 KB
testcase_05 AC 15 ms
8,024 KB
testcase_06 AC 15 ms
7,788 KB
testcase_07 AC 16 ms
7,884 KB
testcase_08 AC 15 ms
7,880 KB
testcase_09 AC 15 ms
7,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a1, a2, a3, b = map(int, input().split())
aList = [a1,a2,a3]

dmc = a1 + a2 + a3 + b
aList = sorted(aList)
dmnc = aList[2] * 3

dmax = 0
if dmc > dmnc:
    dmax = dmc
else:
    dmax = dmnc

print(dmax)
0