結果

問題 No.182 新規性の虜
ユーザー nonokai10nonokai10
提出日時 2018-02-26 02:01:51
言語 Ruby
(3.3.0)
結果
AC  
実行時間 168 ms / 5,000 ms
コード長 146 bytes
コンパイル時間 195 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 27,776 KB
最終ジャッジ日時 2024-04-28 19:44:26
合計ジャッジ時間 4,889 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
12,160 KB
testcase_01 AC 92 ms
12,032 KB
testcase_02 AC 86 ms
12,160 KB
testcase_03 AC 87 ms
12,032 KB
testcase_04 AC 85 ms
12,160 KB
testcase_05 AC 86 ms
12,160 KB
testcase_06 AC 86 ms
12,032 KB
testcase_07 AC 87 ms
12,032 KB
testcase_08 AC 123 ms
20,224 KB
testcase_09 AC 154 ms
26,624 KB
testcase_10 AC 152 ms
25,088 KB
testcase_11 AC 134 ms
20,480 KB
testcase_12 AC 107 ms
15,488 KB
testcase_13 AC 88 ms
12,160 KB
testcase_14 AC 87 ms
12,160 KB
testcase_15 AC 88 ms
12,160 KB
testcase_16 AC 87 ms
12,160 KB
testcase_17 AC 88 ms
12,160 KB
testcase_18 AC 133 ms
17,536 KB
testcase_19 AC 119 ms
16,128 KB
testcase_20 AC 107 ms
14,848 KB
testcase_21 AC 141 ms
18,176 KB
testcase_22 AC 115 ms
15,616 KB
testcase_23 AC 89 ms
12,160 KB
testcase_24 AC 168 ms
27,776 KB
testcase_25 AC 144 ms
18,560 KB
testcase_26 AC 105 ms
13,312 KB
testcase_27 AC 92 ms
12,032 KB
evil01.txt AC 162 ms
27,904 KB
evil02.txt AC 167 ms
27,776 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
numbers = gets.split.map(&:to_i)
hash = Hash.new(0)
numbers.each do |val|
  hash[val] += 1
end
puts hash.select { |key, val| val == 1 }.size
0