結果

問題 No.182 新規性の虜
ユーザー rky
提出日時 2017-11-03 18:24:12
言語 Ruby
(3.4.1)
結果
TLE  
実行時間 -
コード長 140 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 33,024 KB
最終ジャッジ日時 2024-11-22 15:36:05
合計ジャッジ時間 69,737 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18 TLE * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - test_case
Syntax OK

ソースコード

diff #

test_case = gets.chomp.to_i
list = gets.chomp.split.map(&:to_i)
count = 0

list.uniq().each{|i| count += 1 if list.count(i) == 1}
puts count
0