結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー Jinma YamashitaJinma Yamashita
提出日時 2016-07-10 14:04:30
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 315 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 41,328 KB
最終ジャッジ日時 2024-04-21 01:23:06
合計ジャッジ時間 790 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

var input = 16;

for (i = 0; i < input; i++) { 
  var val = i+1;
  if ((val % 3 === 0) && (val % 5 === 0)) {
    console.log('FizzBuzz');
    continue;
  }
  
  if (val % 3 === 0) {
    console.log('Fizz');
    continue;
  }
  if (val % 5 === 0) {
    console.log('Buzz');
    continue;
  }

    console.log(i+1);
}
0