結果
問題 |
No.268 ラッピング(Easy)
|
ユーザー |
|
提出日時 | 2018-09-05 14:06:54 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 138 ms / 5,000 ms |
コード長 | 434 bytes |
コンパイル時間 | 2,089 ms |
コンパイル使用メモリ | 74,964 KB |
実行使用メモリ | 41,560 KB |
最終ジャッジ日時 | 2024-11-08 20:34:26 |
合計ジャッジ時間 | 4,603 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
import java.util.Arrays; import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int l[]=new int[3],n[]=new int[3],s; for(int i=0;i<3;++i) l[i]=sc.nextInt(); Arrays.sort(l); for(int i=0;i<3;++i) n[i]=sc.nextInt(); Arrays.sort(n); sc.close(); s=(l[0]+l[1])*2*n[2]; s+=(l[0]+l[2])*2*n[1]; s+=(l[1]+l[2])*2*n[0]; System.out.print(s); } }