結果
| 問題 | No.268 ラッピング(Easy) |
| コンテスト | |
| ユーザー |
diginatu
|
| 提出日時 | 2015-08-21 23:03:07 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 361 bytes |
| 記録 | |
| コンパイル時間 | 555 ms |
| コンパイル使用メモリ | 96,212 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2026-03-05 06:31:24 |
| 合計ジャッジ時間 | 1,230 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / 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