👀配列 倍数カウント2024/02/06に公開練習問題techttps://paiza.jp/works/mondai/c_rank_level_up_problems/c_rank_for_step1/edit?language_uid=ruby n = gets.chomp.to_i a = gets.split.map(&:to_i) puts a.count{|n| n % 3 == 0} https://docs.ruby-lang.org/ja/latest/method/Array/i/count.html Discussion
Discussion