Last active
March 21, 2018 15:02
-
-
Save hamuhei1412/1179a2a515acd8b425322d8efe38e35e to your computer and use it in GitHub Desktop.
ABC085B
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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