Skip to content

Instantly share code, notes, and snippets.

@hamuhei1412
Last active March 21, 2018 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamuhei1412/1179a2a515acd8b425322d8efe38e35e to your computer and use it in GitHub Desktop.
Save hamuhei1412/1179a2a515acd8b425322d8efe38e35e to your computer and use it in GitHub Desktop.
ABC085B
a = gets.to_i
AR = Array.new
a.times{AR << gets.to_i} #a行に渡る配列を取得
AR.uniq! #重複要素を削除
puts AR.size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment