結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー 山口太輔山口太輔
提出日時 2020-08-24 12:07:21
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 392 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 39,296 KB
最終ジャッジ日時 2024-04-24 03:24:08
合計ジャッジ時間 863 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    const N = input;
    
    for(let i = 1; i <= N; i++) {
        if(i % 3 === 0 && i % 5 === 0) {
            console.log("FizzBuzz");
        } else if(i % 3 === 0) {
            console.log("Fizz");
        } else if(i % 5 === 0) {
            console.log("Buzz");
        }
    }
}

// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0