結果

問題 No.182 新規性の虜
ユーザー notkntnotknt
提出日時 2016-05-11 16:32:17
言語 Ruby
(3.3.0)
結果
AC  
実行時間 166 ms / 5,000 ms
コード長 112 bytes
コンパイル時間 334 ms
コンパイル使用メモリ 11,392 KB
実行使用メモリ 28,964 KB
最終ジャッジ日時 2023-08-27 10:47:45
合計ジャッジ時間 5,178 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,136 KB
testcase_01 AC 79 ms
15,296 KB
testcase_02 AC 78 ms
15,084 KB
testcase_03 AC 79 ms
15,000 KB
testcase_04 AC 80 ms
15,240 KB
testcase_05 AC 83 ms
15,348 KB
testcase_06 AC 79 ms
15,260 KB
testcase_07 AC 80 ms
15,240 KB
testcase_08 AC 121 ms
22,216 KB
testcase_09 AC 148 ms
27,412 KB
testcase_10 AC 141 ms
26,420 KB
testcase_11 AC 131 ms
22,824 KB
testcase_12 AC 104 ms
18,428 KB
testcase_13 AC 80 ms
14,996 KB
testcase_14 AC 82 ms
15,208 KB
testcase_15 AC 79 ms
15,124 KB
testcase_16 AC 79 ms
15,004 KB
testcase_17 AC 79 ms
15,132 KB
testcase_18 AC 123 ms
20,352 KB
testcase_19 AC 114 ms
19,292 KB
testcase_20 AC 105 ms
17,896 KB
testcase_21 AC 133 ms
20,908 KB
testcase_22 AC 107 ms
18,448 KB
testcase_23 AC 79 ms
15,236 KB
testcase_24 AC 166 ms
28,964 KB
testcase_25 AC 137 ms
21,284 KB
testcase_26 AC 88 ms
16,376 KB
testcase_27 AC 79 ms
15,080 KB
evil01.txt AC 167 ms
29,356 KB
evil02.txt AC 169 ms
29,412 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
m = {}
gets.split.map(&:to_i).each { |x|
    m[x] ||= 0
    m[x] += 1
}
puts m.reject { |k, v| v > 1 }.size
0