結果

問題 No.268 ラッピング(Easy)
ユーザー steek79steek79
提出日時 2015-10-21 00:51:01
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 5,000 ms
コード長 261 bytes
コンパイル時間 637 ms
コンパイル使用メモリ 6,636 KB
実行使用メモリ 6,044 KB
最終ジャッジ日時 2023-09-29 17:03:02
合計ジャッジ時間 1,559 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,876 KB
testcase_01 AC 11 ms
5,864 KB
testcase_02 AC 11 ms
5,956 KB
testcase_03 AC 10 ms
5,876 KB
testcase_04 AC 10 ms
5,804 KB
testcase_05 AC 11 ms
6,028 KB
testcase_06 AC 10 ms
5,860 KB
testcase_07 AC 11 ms
5,892 KB
testcase_08 AC 10 ms
6,008 KB
testcase_09 AC 10 ms
5,944 KB
testcase_10 AC 10 ms
5,956 KB
testcase_11 AC 10 ms
6,044 KB
testcase_12 AC 10 ms
5,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

length = map(int, raw_input().split())
colors = map(int, raw_input().split())

length.sort()
colors.sort()

ans = 0
ans += (length[0]+length[1]) * colors[2] * 2
ans += (length[0]+length[2]) * colors[1] * 2
ans += (length[1]+length[2]) * colors[0] * 2

print ans
0