結果
問題 | No.268 ラッピング(Easy) |
ユーザー |
![]() |
提出日時 | 2016-10-29 01:01:57 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 119 ms / 5,000 ms |
コード長 | 381 bytes |
コンパイル時間 | 1,856 ms |
コンパイル使用メモリ | 74,424 KB |
実行使用メモリ | 41,560 KB |
最終ジャッジ日時 | 2024-11-24 07:01:48 |
合計ジャッジ時間 | 4,006 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
import java.util.*;class A{static Scanner s = new Scanner(System.in);public static void main(String[] args) {int x = s.nextInt(),y = s.nextInt(),z = s.nextInt();int l[] = {x+y,y+z,z+x};Arrays.sort(l);int rgb[] = {s.nextInt(),s.nextInt(),s.nextInt()};Arrays.sort(rgb);System.out.println(l[0]*rgb[2]*2+l[1]*rgb[1]*2+l[2]*rgb[0]*2);}}