結果

問題 No.311 z in FizzBuzzString
ユーザー gemmarogemmaro
提出日時 2019-12-14 11:43:40
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 98 bytes
コンパイル時間 42 ms
コンパイル使用メモリ 11,996 KB
実行使用メモリ 16,256 KB
最終ジャッジ日時 2023-10-25 02:59:51
合計ジャッジ時間 1,548 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
16,256 KB
testcase_01 AC 82 ms
16,252 KB
testcase_02 AC 83 ms
16,252 KB
testcase_03 AC 82 ms
16,252 KB
testcase_04 AC 81 ms
16,252 KB
testcase_05 AC 81 ms
16,252 KB
testcase_06 AC 81 ms
16,252 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# frozen_string_literal: true

n = gets.chomp.to_i
p 2 * ((n.to_f / 3).floor + (n.to_f / 5).floor)
0