結果

問題 No.182 新規性の虜
ユーザー LEDLED
提出日時 2019-02-03 00:08:04
言語 Ruby
(3.3.0)
結果
AC  
実行時間 160 ms / 5,000 ms
コード長 111 bytes
コンパイル時間 215 ms
コンパイル使用メモリ 11,356 KB
実行使用メモリ 28,984 KB
最終ジャッジ日時 2023-08-20 02:05:12
合計ジャッジ時間 5,336 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,072 KB
testcase_01 AC 81 ms
15,132 KB
testcase_02 AC 81 ms
15,076 KB
testcase_03 AC 80 ms
15,132 KB
testcase_04 AC 80 ms
15,272 KB
testcase_05 AC 81 ms
15,192 KB
testcase_06 AC 79 ms
15,152 KB
testcase_07 AC 81 ms
15,296 KB
testcase_08 AC 121 ms
22,084 KB
testcase_09 AC 144 ms
27,532 KB
testcase_10 AC 139 ms
26,536 KB
testcase_11 AC 127 ms
22,752 KB
testcase_12 AC 102 ms
18,308 KB
testcase_13 AC 80 ms
15,080 KB
testcase_14 AC 81 ms
15,188 KB
testcase_15 AC 81 ms
15,256 KB
testcase_16 AC 81 ms
15,032 KB
testcase_17 AC 81 ms
15,236 KB
testcase_18 AC 125 ms
20,344 KB
testcase_19 AC 112 ms
19,340 KB
testcase_20 AC 102 ms
18,000 KB
testcase_21 AC 128 ms
20,956 KB
testcase_22 AC 106 ms
18,388 KB
testcase_23 AC 80 ms
15,240 KB
testcase_24 AC 160 ms
28,984 KB
testcase_25 AC 134 ms
21,200 KB
testcase_26 AC 87 ms
16,488 KB
testcase_27 AC 82 ms
15,180 KB
evil01.txt AC 164 ms
29,284 KB
evil02.txt AC 162 ms
29,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n=gets.to_i
a=gets.split.map(&:to_i)
puts a.each_with_object(Hash.new(0)){|v,h|h[v]+=1}.select{|k,v|v==1}.size
0