結果
| 問題 | 
                            No.9002 FizzBuzz(テスト用)
                             | 
                    
| ユーザー | 
                             | 
                    
| 提出日時 | 2016-12-20 11:13:33 | 
| 言語 | Ruby  (3.4.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 93 ms / 5,000 ms | 
| コード長 | 285 bytes | 
| コンパイル時間 | 75 ms | 
| コンパイル使用メモリ | 7,552 KB | 
| 実行使用メモリ | 12,288 KB | 
| 最終ジャッジ日時 | 2024-12-14 11:11:05 | 
| 合計ジャッジ時間 | 1,170 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 4 | 
コンパイルメッセージ
Main.rb:13: warning: mismatched indentations at 'else' with 'if' at 5 Main.rb:15: warning: mismatched indentations at 'end' with 'else' at 13 Syntax OK
ソースコード
GET_NUMBER = gets.to_i
GET_NUMBER.times do |i|
  current_number = i + 1
  if current_number % 3 == 0
    if current_number % 5 == 0
      puts 'FizzBuzz'
    else
      puts 'Fizz'
    end
  elsif current_number % 5 == 0
      puts 'Buzz'
    else
      puts current_number
  end
end