結果

問題 No.593 4進FizzBuzz
ユーザー suzuki_takafumisuzuki_takafumi
提出日時 2017-11-24 11:26:49
言語 Ruby
(3.3.0)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 131 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 11,400 KB
実行使用メモリ 21,384 KB
最終ジャッジ日時 2023-08-18 04:25:18
合計ジャッジ時間 5,794 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,036 KB
testcase_01 AC 82 ms
15,260 KB
testcase_02 AC 82 ms
15,156 KB
testcase_03 AC 83 ms
15,116 KB
testcase_04 AC 85 ms
15,120 KB
testcase_05 AC 82 ms
15,088 KB
testcase_06 AC 82 ms
15,348 KB
testcase_07 AC 82 ms
15,136 KB
testcase_08 AC 82 ms
15,132 KB
testcase_09 AC 82 ms
15,016 KB
testcase_10 AC 82 ms
15,144 KB
testcase_11 AC 83 ms
15,172 KB
testcase_12 AC 81 ms
15,096 KB
testcase_13 AC 83 ms
15,116 KB
testcase_14 AC 83 ms
15,176 KB
testcase_15 AC 83 ms
15,092 KB
testcase_16 AC 109 ms
18,836 KB
testcase_17 AC 110 ms
19,272 KB
testcase_18 AC 108 ms
18,888 KB
testcase_19 AC 121 ms
21,256 KB
testcase_20 AC 108 ms
18,240 KB
testcase_21 AC 110 ms
18,764 KB
testcase_22 AC 123 ms
21,296 KB
testcase_23 AC 106 ms
18,300 KB
testcase_24 AC 110 ms
19,268 KB
testcase_25 AC 111 ms
19,104 KB
testcase_26 AC 122 ms
21,384 KB
testcase_27 AC 122 ms
21,112 KB
testcase_28 AC 107 ms
18,124 KB
testcase_29 AC 123 ms
21,356 KB
testcase_30 AC 102 ms
18,256 KB
testcase_31 AC 103 ms
18,840 KB
testcase_32 AC 106 ms
19,504 KB
testcase_33 AC 116 ms
21,000 KB
testcase_34 AC 102 ms
18,608 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

input = gets.to_i 4

puts (input % 15) == 0 ?  'FizzBuzz' : (input % 3) == 0 ?  'Fizz' : (input % 5) == 0 ?  'Buzz' : input.to_s(4)
0