結果

問題 No.593 4進FizzBuzz
ユーザー simansiman
提出日時 2020-11-14 14:02:16
言語 Ruby
(3.3.0)
結果
AC  
実行時間 108 ms / 2,000 ms
コード長 144 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 11,196 KB
実行使用メモリ 21,380 KB
最終ジャッジ日時 2023-09-30 04:57:53
合計ジャッジ時間 7,489 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,248 KB
testcase_01 AC 77 ms
15,028 KB
testcase_02 AC 77 ms
15,032 KB
testcase_03 AC 77 ms
14,976 KB
testcase_04 AC 77 ms
15,040 KB
testcase_05 AC 77 ms
14,976 KB
testcase_06 AC 76 ms
15,080 KB
testcase_07 AC 76 ms
15,104 KB
testcase_08 AC 81 ms
15,036 KB
testcase_09 AC 76 ms
15,028 KB
testcase_10 AC 76 ms
15,036 KB
testcase_11 AC 76 ms
15,036 KB
testcase_12 AC 76 ms
15,044 KB
testcase_13 AC 76 ms
15,092 KB
testcase_14 AC 76 ms
14,980 KB
testcase_15 AC 77 ms
15,244 KB
testcase_16 AC 107 ms
21,056 KB
testcase_17 AC 104 ms
20,532 KB
testcase_18 AC 105 ms
21,380 KB
testcase_19 AC 107 ms
21,136 KB
testcase_20 AC 102 ms
20,060 KB
testcase_21 AC 106 ms
21,000 KB
testcase_22 AC 107 ms
21,228 KB
testcase_23 AC 101 ms
20,292 KB
testcase_24 AC 104 ms
20,536 KB
testcase_25 AC 104 ms
20,540 KB
testcase_26 AC 108 ms
21,180 KB
testcase_27 AC 105 ms
21,172 KB
testcase_28 AC 102 ms
20,132 KB
testcase_29 AC 107 ms
21,224 KB
testcase_30 AC 98 ms
19,936 KB
testcase_31 AC 100 ms
21,068 KB
testcase_32 AC 100 ms
20,604 KB
testcase_33 AC 107 ms
21,060 KB
testcase_34 AC 100 ms
21,196 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.chomp
n = N.to_i(4)

if n % 15 == 0 
  puts 'FizzBuzz'
elsif n % 5 == 0
  puts 'Buzz'
elsif n % 3 == 0
  puts 'Fizz'
else
  puts N
end
0