結果

問題 No.549 素材合成システム
ユーザー Mcpu3Mcpu3
提出日時 2018-09-02 21:23:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 606 ms / 2,000 ms
コード長 334 bytes
コンパイル時間 2,047 ms
コンパイル使用メモリ 74,392 KB
実行使用メモリ 59,680 KB
最終ジャッジ日時 2024-04-10 09:13:33
合計ジャッジ時間 22,263 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
54,064 KB
testcase_01 AC 112 ms
53,980 KB
testcase_02 AC 119 ms
53,908 KB
testcase_03 AC 118 ms
54,024 KB
testcase_04 AC 107 ms
53,144 KB
testcase_05 AC 107 ms
53,144 KB
testcase_06 AC 106 ms
53,044 KB
testcase_07 AC 567 ms
59,464 KB
testcase_08 AC 606 ms
59,352 KB
testcase_09 AC 598 ms
59,620 KB
testcase_10 AC 518 ms
58,556 KB
testcase_11 AC 531 ms
59,624 KB
testcase_12 AC 537 ms
59,480 KB
testcase_13 AC 601 ms
59,352 KB
testcase_14 AC 593 ms
59,520 KB
testcase_15 AC 576 ms
59,680 KB
testcase_16 AC 517 ms
59,276 KB
testcase_17 AC 521 ms
59,432 KB
testcase_18 AC 454 ms
59,340 KB
testcase_19 AC 455 ms
59,420 KB
testcase_20 AC 490 ms
59,384 KB
testcase_21 AC 474 ms
59,012 KB
testcase_22 AC 471 ms
58,404 KB
testcase_23 AC 462 ms
58,088 KB
testcase_24 AC 603 ms
59,260 KB
testcase_25 AC 570 ms
59,536 KB
testcase_26 AC 597 ms
59,300 KB
testcase_27 AC 523 ms
59,316 KB
testcase_28 AC 120 ms
54,096 KB
testcase_29 AC 107 ms
52,868 KB
testcase_30 AC 109 ms
53,164 KB
testcase_31 AC 485 ms
59,396 KB
testcase_32 AC 533 ms
59,192 KB
testcase_33 AC 468 ms
59,604 KB
testcase_34 AC 509 ms
59,320 KB
testcase_35 AC 476 ms
59,172 KB
testcase_36 AC 526 ms
59,680 KB
testcase_37 AC 493 ms
59,332 KB
testcase_38 AC 114 ms
53,504 KB
testcase_39 AC 120 ms
54,052 KB
testcase_40 AC 422 ms
58,516 KB
testcase_41 AC 377 ms
59,348 KB
testcase_42 AC 180 ms
56,936 KB
testcase_43 AC 359 ms
59,144 KB
testcase_44 AC 229 ms
57,644 KB
testcase_45 AC 382 ms
59,576 KB
testcase_46 AC 284 ms
59,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt(),a[]=new int[n],i;
		for(i=0;i<n;i++) a[i]=sc.nextInt();
		sc.close();
		Arrays.sort(a);
		for(i=0;i<n-1;i++) a[n-1]+=a[i]/2;
		System.out.print(a[n-1]);
	}
}
0