結果
| 問題 |
No.79 過小評価ダメ・ゼッタイ
|
| コンテスト | |
| ユーザー |
mobius_bkst
|
| 提出日時 | 2015-05-04 12:27:55 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 142 ms / 5,000 ms |
| コード長 | 214 bytes |
| コンパイル時間 | 125 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 17,792 KB |
| 最終ジャッジ日時 | 2024-06-26 07:32:34 |
| 合計ジャッジ時間 | 3,881 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
コンパイルメッセージ
Syntax OK
ソースコード
N = gets.to_i
count = Array.new(7,0)
L = gets.chomp.split
N.times do |i|
count[L[i].to_i] += 1
end
max = -1
output = -1
for i in 1..6
if count[i] >= max
output = i;
max = count[i]
end
end
puts output
mobius_bkst