結果

問題 No.182 新規性の虜
ユーザー finefine
提出日時 2015-10-11 22:48:40
言語 Ruby
(3.3.0)
結果
AC  
実行時間 193 ms / 5,000 ms
コード長 132 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 11,476 KB
実行使用メモリ 34,416 KB
最終ジャッジ日時 2023-08-27 07:34:55
合計ジャッジ時間 5,553 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,140 KB
testcase_01 AC 80 ms
15,148 KB
testcase_02 AC 82 ms
15,228 KB
testcase_03 AC 81 ms
15,272 KB
testcase_04 AC 81 ms
15,264 KB
testcase_05 AC 83 ms
15,036 KB
testcase_06 AC 83 ms
15,296 KB
testcase_07 AC 82 ms
15,276 KB
testcase_08 AC 141 ms
24,532 KB
testcase_09 AC 185 ms
31,472 KB
testcase_10 AC 169 ms
29,932 KB
testcase_11 AC 155 ms
27,276 KB
testcase_12 AC 112 ms
20,556 KB
testcase_13 AC 82 ms
15,300 KB
testcase_14 AC 82 ms
15,044 KB
testcase_15 AC 82 ms
15,268 KB
testcase_16 AC 83 ms
15,304 KB
testcase_17 AC 84 ms
15,144 KB
testcase_18 AC 124 ms
20,748 KB
testcase_19 AC 115 ms
19,312 KB
testcase_20 AC 105 ms
18,196 KB
testcase_21 AC 137 ms
21,296 KB
testcase_22 AC 109 ms
18,752 KB
testcase_23 AC 82 ms
15,040 KB
testcase_24 AC 193 ms
34,416 KB
testcase_25 AC 130 ms
20,640 KB
testcase_26 AC 96 ms
17,020 KB
testcase_27 AC 83 ms
15,040 KB
evil01.txt AC 200 ms
35,184 KB
evil02.txt AC 199 ms
35,428 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n = gets.to_i
array = gets.chomp.split(" ")
hash = Hash.new(0)
array.each{|value|
	hash[value] += 1    
}
puts hash.flatten.count(1)
0