結果

問題 No.268 ラッピング(Easy)
ユーザー tsunabittsunabit
提出日時 2020-03-20 14:57:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 424 bytes
コンパイル時間 6,795 ms
コンパイル使用メモリ 72,328 KB
実行使用メモリ 56,124 KB
最終ジャッジ日時 2023-08-20 22:45:58
合計ジャッジ時間 6,471 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,768 KB
testcase_01 AC 125 ms
55,468 KB
testcase_02 AC 126 ms
55,796 KB
testcase_03 AC 126 ms
55,488 KB
testcase_04 AC 126 ms
55,476 KB
testcase_05 AC 128 ms
55,736 KB
testcase_06 AC 126 ms
55,484 KB
testcase_07 AC 125 ms
56,124 KB
testcase_08 AC 127 ms
55,688 KB
testcase_09 AC 125 ms
56,020 KB
testcase_10 AC 124 ms
53,852 KB
testcase_11 AC 124 ms
55,728 KB
testcase_12 AC 125 ms
55,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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]);
	}
}
0