結果
問題 | No.9002 FizzBuzz(テスト用) |
ユーザー |
![]() |
提出日時 | 2016-10-03 03:53:33 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 158 bytes |
コンパイル時間 | 52 ms |
コンパイル使用メモリ | 7,680 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-11-21 15:06:55 |
合計ジャッジ時間 | 845 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 3 |
コンパイルメッセージ
Main.rb:10: warning: `elsif' at the end of line without an expression Main.rb:3: warning: assigned but unused variable - n Syntax OK
ソースコード
i = gets.to_ifor n in 1..iif i%15 == 0puts "FizzBuzz"elsif i%3 == 0puts "Fizz"elsif i%5 == 0puts "Buzz"elsifputs iendend