結果
問題 |
No.182 新規性の虜
|
ユーザー |
|
提出日時 | 2016-01-23 19:07:23 |
言語 | Ruby (3.4.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 109 bytes |
コンパイル時間 | 84 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 19,328 KB |
最終ジャッジ日時 | 2024-09-21 15:05:22 |
合計ジャッジ時間 | 4,705 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 RE * 14 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Main.rb:3: warning: assigned but unused variable - w Syntax OK
ソースコード
n=gets.to_i d=Array.new(100000,0) w=gets.split(" ").map(&:to_i).each{|i|d[i]+=1} p d.select!{|i| i==1}.length