結果

問題 No.549 素材合成システム
ユーザー 👑 tatt61880tatt61880
提出日時 2020-04-16 23:57:00
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 2,559 ms
コンパイル使用メモリ 159,428 KB
実行使用メモリ 18,692 KB
最終ジャッジ日時 2023-10-14 16:09:48
合計ジャッジ時間 6,818 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,352 KB
testcase_02 AC 2 ms
4,352 KB
testcase_03 AC 2 ms
4,352 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 1 ms
4,352 KB
testcase_06 AC 1 ms
4,352 KB
testcase_07 AC 62 ms
18,500 KB
testcase_08 AC 62 ms
18,440 KB
testcase_09 AC 60 ms
18,496 KB
testcase_10 AC 61 ms
18,504 KB
testcase_11 AC 60 ms
18,380 KB
testcase_12 AC 60 ms
18,324 KB
testcase_13 AC 60 ms
18,600 KB
testcase_14 AC 59 ms
18,556 KB
testcase_15 AC 60 ms
18,380 KB
testcase_16 AC 59 ms
18,680 KB
testcase_17 AC 45 ms
18,284 KB
testcase_18 AC 36 ms
15,352 KB
testcase_19 AC 42 ms
17,784 KB
testcase_20 AC 41 ms
17,140 KB
testcase_21 AC 54 ms
17,104 KB
testcase_22 AC 48 ms
16,692 KB
testcase_23 AC 60 ms
18,600 KB
testcase_24 AC 55 ms
17,372 KB
testcase_25 AC 51 ms
15,496 KB
testcase_26 AC 59 ms
18,068 KB
testcase_27 AC 51 ms
15,780 KB
testcase_28 AC 2 ms
4,352 KB
testcase_29 AC 2 ms
4,348 KB
testcase_30 AC 2 ms
4,352 KB
testcase_31 AC 44 ms
18,616 KB
testcase_32 AC 44 ms
18,608 KB
testcase_33 AC 44 ms
18,660 KB
testcase_34 AC 43 ms
18,588 KB
testcase_35 AC 59 ms
18,692 KB
testcase_36 AC 44 ms
18,420 KB
testcase_37 AC 45 ms
18,472 KB
testcase_38 AC 2 ms
4,352 KB
testcase_39 AC 2 ms
4,348 KB
testcase_40 AC 40 ms
12,772 KB
testcase_41 AC 16 ms
7,500 KB
testcase_42 AC 3 ms
4,352 KB
testcase_43 AC 17 ms
8,716 KB
testcase_44 AC 6 ms
5,308 KB
testcase_45 AC 21 ms
9,808 KB
testcase_46 AC 12 ms
7,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var ss: [][]char
	var n: int :: cui@input().toInt(&)
	do ss :: cui@input().split(" ")
	var a: []int :: #[n]int
	for i(0, n - 1)
		do a[i] :: ss[i].toInt(&)
	end for
	do a.sort()
	var ans: int :: a[n - 1]
	for i(0, n - 2)
		do ans :+ a[i] / 2
	end for
	do cui@print("\{ans}\n")
end func
0