結果
| 問題 |
No.9002 FizzBuzz(テスト用)
|
| ユーザー |
startcpp
|
| 提出日時 | 2019-10-26 14:38:40 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 91 ms / 5,000 ms |
| コード長 | 200 bytes |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-09-14 08:05:59 |
| 合計ジャッジ時間 | 1,231 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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