結果
| 問題 | No.9002 FizzBuzz(テスト用) |
| ユーザー |
startcpp
|
| 提出日時 | 2019-10-26 14:38:40 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 89 ms / 5,000 ms |
| コード長 | 200 bytes |
| 記録 | |
| コンパイル時間 | 192 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 14,848 KB |
| 最終ジャッジ日時 | 2026-04-04 11:22:34 |
| 合計ジャッジ時間 | 1,004 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
Main.rb:6: warning: mismatched indentations at 'elsif' with 'if' at 4 Main.rb:8: warning: mismatched indentations at 'elsif' with 'if' at 4 Main.rb:10: warning: mismatched indentations at 'else' with 'if' at 4 Syntax OK
ソースコード
N = gets.to_i;
for i in 1..N do
if i % 15 == 0 then
print("FizzBuzz\n")
elsif i % 3 == 0 then
print("Fizz\n")
elsif i % 5 == 0 then
print("Buzz\n")
else
print(i)
print("\n")
end
end
startcpp