結果

問題 No.268 ラッピング(Easy)
ユーザー ldsybldsyb
提出日時 2016-03-15 03:22:01
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 300 bytes
コンパイル時間 738 ms
コンパイル使用メモリ 63,516 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-04-08 13:16:09
合計ジャッジ時間 1,536 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 AC 1 ms
6,676 KB
testcase_03 AC 2 ms
6,676 KB
testcase_04 AC 1 ms
6,676 KB
testcase_05 AC 2 ms
6,676 KB
testcase_06 AC 2 ms
6,676 KB
testcase_07 AC 1 ms
6,676 KB
testcase_08 AC 2 ms
6,676 KB
testcase_09 AC 2 ms
6,676 KB
testcase_10 AC 2 ms
6,676 KB
testcase_11 AC 1 ms
6,676 KB
testcase_12 AC 1 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
using namespace std;

int main(){
   int l[3],p[3];
   cin >> l[0] >> l[1] >> l[2] >> p[0] >> p[1] >> p[2];
   stable_sort(l,l + 3);
   stable_sort(p,p + 3);
   cout << 2 * p[2] * (l[0] + l[1]) + 2 * p[1] * (l[0] + l[2]) + 2 * p[0] * (l[1] + l[2]) << endl;
}
0