結果
| 問題 |
No.9002 FizzBuzz(テスト用)
|
| ユーザー |
|
| 提出日時 | 2017-12-01 09:41:05 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 80 ms / 5,000 ms |
| コード長 | 154 bytes |
| コンパイル時間 | 39 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,160 KB |
| 最終ジャッジ日時 | 2024-11-27 21:21:20 |
| 合計ジャッジ時間 | 772 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
Main.rb:7: warning: mismatched indentations at 'elsif' with 'if' at 4 Main.rb:9: warning: mismatched indentations at 'elsif' with 'if' at 4 Main.rb:11: warning: mismatched indentations at 'else' with 'if' at 4 Syntax OK
ソースコード
n = gets.to_i (1..n).each do |i| if(i%3 ==0 and i%5 == 0) puts "FizzBuzz" elsif(i%3 == 0) puts 'Fizz' elsif(i%5 ==0) puts 'Buzz' else puts i end end