結果
| 問題 | No.268 ラッピング(Easy) |
| コンテスト | |
| ユーザー |
184
|
| 提出日時 | 2015-08-25 15:22:59 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 280 bytes |
| 記録 | |
| コンパイル時間 | 242 ms |
| コンパイル使用メモリ | 55,364 KB |
| 実行使用メモリ | 63,200 KB |
| 最終ジャッジ日時 | 2026-04-02 06:34:55 |
| 合計ジャッジ時間 | 785 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <cstdio>
#include <algorithm>
using namespace std;
//namaega184
int main(){
int l[3],t[3];scanf("%d%d%d",&l[0],&l[1],&l[2]);
scanf("%d%d%d",&t[0],&t[1],&t[2]);sort(l,l+3);sort(t,t+3);
printf("%d\n",(t[0]*(l[2]+l[1])+t[1]*(l[2]+l[0])+t[2]*(l[0]+l[1]))*2);
return 0;
}
184