結果
問題 | No.268 ラッピング(Easy) |
ユーザー |
![]() |
提出日時 | 2015-10-21 00:51:01 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 13 ms / 5,000 ms |
コード長 | 261 bytes |
コンパイル時間 | 81 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2024-07-22 11:07:40 |
合計ジャッジ時間 | 995 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
length = map(int, raw_input().split())colors = map(int, raw_input().split())length.sort()colors.sort()ans = 0ans += (length[0]+length[1]) * colors[2] * 2ans += (length[0]+length[2]) * colors[1] * 2ans += (length[1]+length[2]) * colors[0] * 2print ans