結果

問題 No.182 新規性の虜
ユーザー fshutofshuto
提出日時 2019-04-30 10:16:13
言語 Ruby
(3.3.0)
結果
AC  
実行時間 160 ms / 5,000 ms
コード長 113 bytes
コンパイル時間 37 ms
コンパイル使用メモリ 11,268 KB
実行使用メモリ 27,652 KB
最終ジャッジ日時 2023-08-27 23:27:27
合計ジャッジ時間 4,853 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
15,048 KB
testcase_01 AC 77 ms
15,348 KB
testcase_02 AC 76 ms
15,092 KB
testcase_03 AC 77 ms
15,332 KB
testcase_04 AC 77 ms
15,160 KB
testcase_05 AC 79 ms
15,140 KB
testcase_06 AC 77 ms
15,220 KB
testcase_07 AC 78 ms
15,228 KB
testcase_08 AC 119 ms
22,108 KB
testcase_09 AC 147 ms
25,464 KB
testcase_10 AC 139 ms
24,728 KB
testcase_11 AC 127 ms
22,276 KB
testcase_12 AC 100 ms
18,456 KB
testcase_13 AC 78 ms
15,052 KB
testcase_14 AC 78 ms
15,148 KB
testcase_15 AC 77 ms
15,080 KB
testcase_16 AC 78 ms
15,036 KB
testcase_17 AC 77 ms
15,300 KB
testcase_18 AC 117 ms
20,336 KB
testcase_19 AC 107 ms
19,148 KB
testcase_20 AC 98 ms
18,000 KB
testcase_21 AC 126 ms
20,844 KB
testcase_22 AC 102 ms
18,364 KB
testcase_23 AC 77 ms
15,148 KB
testcase_24 AC 160 ms
27,652 KB
testcase_25 AC 128 ms
21,116 KB
testcase_26 AC 86 ms
16,052 KB
testcase_27 AC 77 ms
15,032 KB
evil01.txt AC 162 ms
28,080 KB
evil02.txt AC 163 ms
27,996 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n = gets.to_i
as = Hash.new(0)
gets.split.map(&:to_i).each do |a|
  as[a] += 1
end
puts as.count { |k,v| v == 1 }
0