結果
| 問題 | 
                            No.268 ラッピング(Easy)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             diginatu
                         | 
                    
| 提出日時 | 2015-08-21 23:03:07 | 
| 言語 | D  (dmd 2.109.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 361 bytes | 
| コンパイル時間 | 1,101 ms | 
| コンパイル使用メモリ | 112,640 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-12 02:43:01 | 
| 合計ジャッジ時間 | 1,815 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
ソースコード
import std.stdio, std.conv, std.math, std.string, std.range, std.array,
       std.algorithm;
void main() {
  auto L = readln().strip().split().map!(to!int)().array();
  auto C = readln().strip().split().map!(to!int)().array();
  auto ol = [L[0]+L[1], L[1]+L[2], L[0]+L[2]];
  C.sort();
  ol.sort!"a>b"();
  ol[] *= C[];
  (ol.reduce!"a+b"()*2).writeln();
}
            
            
            
        
            
diginatu