結果

問題 No.593 4進FizzBuzz
ユーザー 0w10w1
提出日時 2017-11-20 10:36:32
言語 Ruby
(3.2.2)
結果
WA  
実行時間 -
コード長 156 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 11,368 KB
実行使用メモリ 21,424 KB
最終ジャッジ日時 2023-08-17 08:14:41
合計ジャッジ時間 5,623 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 83 ms
15,228 KB
testcase_02 WA -
testcase_03 AC 77 ms
15,076 KB
testcase_04 AC 78 ms
15,256 KB
testcase_05 AC 76 ms
15,340 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 77 ms
15,272 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 78 ms
15,228 KB
testcase_13 WA -
testcase_14 AC 77 ms
15,124 KB
testcase_15 AC 77 ms
15,208 KB
testcase_16 WA -
testcase_17 AC 102 ms
21,184 KB
testcase_18 AC 100 ms
21,368 KB
testcase_19 AC 103 ms
21,108 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 104 ms
21,264 KB
testcase_23 AC 102 ms
20,660 KB
testcase_24 WA -
testcase_25 AC 101 ms
21,216 KB
testcase_26 WA -
testcase_27 AC 103 ms
21,280 KB
testcase_28 WA -
testcase_29 AC 102 ms
21,132 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 98 ms
21,136 KB
testcase_33 WA -
testcase_34 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n4 = gets.chop
n = n4.to_i 4
if n % 4 == 0 && n % 5 == 0
  puts "FizzBuzz"
elsif n % 4 == 0
  puts "Fizz"
elsif n % 5 == 0
  puts "Buzz"
else
  puts n4
end
0