結果

問題 No.549 素材合成システム
ユーザー fmhrfmhr
提出日時 2017-07-28 23:30:59
言語 Go
(1.22.1)
結果
AC  
実行時間 628 ms / 2,000 ms
コード長 492 bytes
コンパイル時間 12,316 ms
コンパイル使用メモリ 226,336 KB
実行使用メモリ 6,016 KB
最終ジャッジ日時 2024-04-18 12:09:05
合計ジャッジ時間 24,306 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 1 ms
5,248 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 1 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 1 ms
5,376 KB
testcase_07 AC 529 ms
6,016 KB
testcase_08 AC 528 ms
6,016 KB
testcase_09 AC 530 ms
6,016 KB
testcase_10 AC 521 ms
6,016 KB
testcase_11 AC 517 ms
6,016 KB
testcase_12 AC 525 ms
6,016 KB
testcase_13 AC 513 ms
6,016 KB
testcase_14 AC 526 ms
6,016 KB
testcase_15 AC 526 ms
6,016 KB
testcase_16 AC 528 ms
6,016 KB
testcase_17 AC 225 ms
6,016 KB
testcase_18 AC 179 ms
5,888 KB
testcase_19 AC 219 ms
6,016 KB
testcase_20 AC 219 ms
6,016 KB
testcase_21 AC 566 ms
6,016 KB
testcase_22 AC 534 ms
6,016 KB
testcase_23 AC 607 ms
6,016 KB
testcase_24 AC 492 ms
6,016 KB
testcase_25 AC 429 ms
6,016 KB
testcase_26 AC 511 ms
6,016 KB
testcase_27 AC 433 ms
6,016 KB
testcase_28 AC 2 ms
5,376 KB
testcase_29 AC 1 ms
5,376 KB
testcase_30 AC 1 ms
5,376 KB
testcase_31 AC 230 ms
6,016 KB
testcase_32 AC 237 ms
6,016 KB
testcase_33 AC 233 ms
6,016 KB
testcase_34 AC 234 ms
6,016 KB
testcase_35 AC 628 ms
6,016 KB
testcase_36 AC 232 ms
6,016 KB
testcase_37 AC 236 ms
6,016 KB
testcase_38 AC 1 ms
5,376 KB
testcase_39 AC 1 ms
5,376 KB
testcase_40 AC 325 ms
5,376 KB
testcase_41 AC 141 ms
5,376 KB
testcase_42 AC 11 ms
5,376 KB
testcase_43 AC 79 ms
5,376 KB
testcase_44 AC 25 ms
5,376 KB
testcase_45 AC 94 ms
5,376 KB
testcase_46 AC 56 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import (
	"fmt"
	"sort"
)

func main() {
	var N int
	fmt.Scan(&N)
	// odd_x := make([]int, 0)
	// even_x := make([]int, 0)
	// var x int
	x := make([]int, N)
	for i := 0; i < N; i++ {
		fmt.Scan(&x[i])
		// if x%2 == 0 {
		// even_x = append(even_x, x)
		// } else {
		// odd_x = append(odd_x, x)
		// }
	}
	// sort.Ints(even_x)
	// sort.Ints(odd_x)
	sort.Ints(x)
	// log.Println(x)
	for i := 0; i < N-1; i++ {
		x[N-1] += x[i] / 2
		// log.Println(x)
	}
	fmt.Println(x[N-1])
}
0