結果
| 問題 |
No.268 ラッピング(Easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-20 14:57:36 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 138 ms / 5,000 ms |
| コード長 | 424 bytes |
| コンパイル時間 | 3,637 ms |
| コンパイル使用メモリ | 74,476 KB |
| 実行使用メモリ | 54,336 KB |
| 最終ジャッジ日時 | 2024-12-14 05:48:25 |
| 合計ジャッジ時間 | 6,154 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
import java.util.*;
import java.io.*;
import java.math.*;
public class No268 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int l1 = sc.nextInt(), l2 = sc.nextInt(), l3 = sc.nextInt();
int[] l = {(l1+l3)*2, (l2+l3)*2, (l2+l1)*2};
Arrays.sort(l);
int[] c = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
Arrays.sort(c);
System.out.println(l[0]*c[2] + l[1]*c[1] + l[2]*c[0]);
}
}