結果
問題 | No.268 ラッピング(Easy) |
ユーザー |
![]() |
提出日時 | 2016-06-17 17:08:31 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 449 bytes |
コンパイル時間 | 426 ms |
コンパイル使用メモリ | 56,712 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-09 16:50:35 |
合計ジャッジ時間 | 1,121 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include<iostream>#include<string>#include<algorithm>using namespace std;int main(){int L1,L2,L3;int R,B,Y;cin>>L1>>L2>>L3;cin>>R>>B>>Y;cout<<min((L1*2+L2*2)*R+(L3*2+L1*2)*Y+(L3*2+L2*2)*B,min((L1*2+L2*2)*R+(L3*2+L1*2)*B+(L3*2+L2*2)*Y,min((L1*2+L2*2)*B+(L3*2+L1*2)*R+(L3*2+L2*2)*Y,min((L1*2+L2*2)*B+(L3*2+L1*2)*Y+(L3*2+L2*2)*R,min((L1*2+L2*2)*Y+(L3*2+L1*2)*B+(L3*2+L2*2)*R,(L1*2+L2*2)*Y+(L3*2+L1*2)*R+(L3*2+L2*2)*B)))))<<endl;}