結果

問題 No.182 新規性の虜
ユーザー Lo_OTLo_OT
提出日時 2018-03-12 22:12:54
言語 Ruby
(3.3.0)
結果
AC  
実行時間 204 ms / 5,000 ms
コード長 168 bytes
コンパイル時間 243 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 36,004 KB
最終ジャッジ日時 2024-04-26 22:19:37
合計ジャッジ時間 5,020 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
12,160 KB
testcase_01 AC 87 ms
12,288 KB
testcase_02 AC 88 ms
12,160 KB
testcase_03 AC 89 ms
12,160 KB
testcase_04 AC 87 ms
12,160 KB
testcase_05 AC 88 ms
12,160 KB
testcase_06 AC 89 ms
12,160 KB
testcase_07 AC 88 ms
12,416 KB
testcase_08 AC 145 ms
24,480 KB
testcase_09 AC 178 ms
34,196 KB
testcase_10 AC 171 ms
32,520 KB
testcase_11 AC 157 ms
25,872 KB
testcase_12 AC 119 ms
17,920 KB
testcase_13 AC 88 ms
12,288 KB
testcase_14 AC 91 ms
12,416 KB
testcase_15 AC 90 ms
12,160 KB
testcase_16 AC 91 ms
12,416 KB
testcase_17 AC 91 ms
12,416 KB
testcase_18 AC 142 ms
17,956 KB
testcase_19 AC 134 ms
16,748 KB
testcase_20 AC 113 ms
15,636 KB
testcase_21 AC 148 ms
18,740 KB
testcase_22 AC 120 ms
16,128 KB
testcase_23 AC 89 ms
12,416 KB
testcase_24 AC 204 ms
36,004 KB
testcase_25 AC 144 ms
17,920 KB
testcase_26 AC 104 ms
14,592 KB
testcase_27 AC 91 ms
12,416 KB
evil01.txt AC 207 ms
36,568 KB
evil02.txt AC 205 ms
36,604 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets;
a = Hash.new(0)
gets.chomp.split.each do |str|
    if a.has_key? str
        a[str] += 1
    else
        a[str] = 1
    end
end
puts a.select {|k,v| v == 1}.size
0