結果
問題 | No.79 過小評価ダメ・ゼッタイ |
ユーザー |
|
提出日時 | 2019-08-04 10:46:33 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 421 bytes |
コンパイル時間 | 12,838 ms |
コンパイル使用メモリ | 230,844 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-07-07 21:40:08 |
合計ジャッジ時間 | 13,996 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 WA * 9 |
ソースコード
package mainimport ("bufio""fmt""os""strconv")func main() {var N, t, answer, max intsc := bufio.NewScanner(os.Stdin)sc.Split(bufio.ScanWords)sc.Scan()N, _ = strconv.Atoi(sc.Text())m := make(map[int]int, 6)for i := 0; i < N; i++ {sc.Scan()t, _ = strconv.Atoi(sc.Text())m[t]++}for k, v := range m {if v >= max && k > answer {answer = kmax = v}}fmt.Println(answer)}