結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー ichyoichyo
提出日時 2014-11-27 23:25:23
言語 Go
(1.22.1)
結果
AC  
実行時間 249 ms / 5,000 ms
コード長 295 bytes
コンパイル時間 10,537 ms
コンパイル使用メモリ 201,568 KB
実行使用メモリ 7,944 KB
最終ジャッジ日時 2023-09-08 14:06:15
合計ジャッジ時間 14,030 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
4,376 KB
testcase_01 AC 241 ms
7,944 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 249 ms
7,940 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 AC 1 ms
4,376 KB
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 155 ms
5,700 KB
testcase_15 AC 63 ms
4,380 KB
testcase_16 AC 190 ms
7,940 KB
testcase_17 AC 56 ms
4,376 KB
testcase_18 AC 180 ms
7,940 KB
testcase_19 AC 133 ms
5,684 KB
testcase_20 AC 245 ms
7,940 KB
testcase_21 AC 7 ms
4,376 KB
testcase_22 AC 87 ms
5,648 KB
testcase_23 AC 231 ms
7,944 KB
testcase_24 AC 239 ms
7,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import "fmt"

func main() {
	var n int
	fmt.Scanf("%d", &n)
	cnt := make([]int, 10)
	for i := 0; i < n; i++ {
		var x int
		fmt.Scanf("%d", &x)
		cnt[x] += 1
	}
	ans := 6
	for i := 6; i > 0; i-- {
		if cnt[ans] < cnt[i] {
			ans = i
		}
	}
	fmt.Println(ans)
}
0