結果
| 問題 | No.549 素材合成システム |
| コンテスト | |
| ユーザー |
kohaku_kohaku
|
| 提出日時 | 2017-07-28 22:47:48 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 390 ms / 2,000 ms |
| コード長 | 429 bytes |
| 記録 | |
| コンパイル時間 | 2,720 ms |
| コンパイル使用メモリ | 81,560 KB |
| 実行使用メモリ | 54,092 KB |
| 最終ジャッジ日時 | 2026-04-26 05:57:00 |
| 合計ジャッジ時間 | 17,442 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 44 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int [] x = new int [N];
for(int i=0; i<N; i++){
x[i] = sc.nextInt();
}
Arrays.sort(x);
int ans = x[N-1];
for(int i=0; i<N-1; i++){
ans+=(x[i]/2);
}
System.out.println(ans);
}
}
kohaku_kohaku