結果
問題 | No.311 z in FizzBuzzString |
ユーザー | osyo-manga |
提出日時 | 2023-05-15 09:57:29 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 126 bytes |
コンパイル時間 | 443 ms |
コンパイル使用メモリ | 11,984 KB |
実行使用メモリ | 360,672 KB |
最終ジャッジ日時 | 2023-10-25 03:04:23 |
合計ジャッジ時間 | 4,125 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | MLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
コンパイルメッセージ
Syntax OK
ソースコード
puts gets.to_i.times.map { _1 % 15 == 0 ? "FizzBuzz" : _1 % 3 == 0 ? "Fizz" : _1 % 5 == 0 ? "Buzz" : _1.to_s }.join.count("z")