結果
| 問題 | No.268 ラッピング(Easy) |
| コンテスト | |
| ユーザー |
koheijkt
|
| 提出日時 | 2026-04-03 14:07:46 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 64 ms / 5,000 ms |
| + 861µs | |
| コード長 | 299 bytes |
| 記録 | |
| コンパイル時間 | 545 ms |
| コンパイル使用メモリ | 95,468 KB |
| 実行使用メモリ | 78,848 KB |
| 最終ジャッジ日時 | 2026-08-24 00:46:43 |
| 合計ジャッジ時間 | 2,551 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
l1, l2, l3 = map(int, input().split())
RBY = list(map(int, input().split()))
from itertools import permutations
total = l1 + l2 + l3
ans = 1e18
for pat in permutations([l1, l2, l3]):
sub = 0
for i in range(3):
sub += RBY[i] * (total - pat[i]) * 2
ans = min(ans, sub)
print(ans)
koheijkt