結果

問題 No.311 z in FizzBuzzString
ユーザー butchi_ybutchi_y
提出日時 2015-12-08 14:50:53
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 273 bytes
コンパイル時間 51 ms
コンパイル使用メモリ 5,152 KB
実行使用メモリ 37,444 KB
最終ジャッジ日時 2023-10-25 02:37:34
合計ジャッジ時間 2,249 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
37,436 KB
testcase_01 AC 64 ms
37,436 KB
testcase_02 AC 65 ms
37,436 KB
testcase_03 AC 64 ms
37,436 KB
testcase_04 AC 65 ms
37,436 KB
testcase_05 AC 64 ms
37,436 KB
testcase_06 AC 65 ms
37,436 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

function FizzBuzzString(N) {
  return (Math.floor(N / 3) + Math.floor(N / 5)) * 2;
}

function Main(input) {
    n = parseInt(input);
    ans = FizzBuzzString(n);
    console.log('%d', ans);
}
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0