結果

問題 No.481 1から10
ユーザー yocto_sothothyocto_sothoth
提出日時 2020-11-13 23:01:36
言語 Ruby
(3.3.0)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 124 bytes
コンパイル時間 808 ms
コンパイル使用メモリ 11,384 KB
実行使用メモリ 15,284 KB
最終ジャッジ日時 2023-09-30 03:59:14
合計ジャッジ時間 2,906 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
15,172 KB
testcase_01 AC 65 ms
15,008 KB
testcase_02 AC 69 ms
15,116 KB
testcase_03 AC 67 ms
15,116 KB
testcase_04 AC 65 ms
15,008 KB
testcase_05 AC 65 ms
15,120 KB
testcase_06 AC 67 ms
15,092 KB
testcase_07 AC 67 ms
15,220 KB
testcase_08 AC 65 ms
15,012 KB
testcase_09 AC 66 ms
15,284 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

b = gets.split.map(&:to_i)
h = Array(1..10).zip(Array.new(10, 0)).to_h
b.each { |e| h[e] += 1 }

puts h.values.index(0) + 1
0