Last active
March 21, 2018 14:38
-
-
Save hamuhei1412/f72a8712321589617402e88fa7a7a1cc to your computer and use it in GitHub Desktop.
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
moke = gets #文字列を取得 | |
puts moke.count("1") #.countの引数に"1"を指定することで、1の数を出力 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment