結果
問題 | No.9002 FizzBuzz(テスト用) |
ユーザー | kisschan |
提出日時 | 2022-08-11 20:32:31 |
言語 | JavaScript (node v21.7.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 522 bytes |
コンパイル時間 | 73 ms |
コンパイル使用メモリ | 5,152 KB |
実行使用メモリ | 37,564 KB |
最終ジャッジ日時 | 2023-10-22 02:44:33 |
合計ジャッジ時間 | 2,353 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
ソースコード
function Main(input) { // inputにはすべての入力の文字列が与えられるので必要に応じて input.split("\n") などで分割する。 var data = input.split('\n'); if(parseInt(data) % 15 === 0){ console.log("FizzBuzz") }else if(parseInt(data) % 3 === 0){ console.log("Fizz") }else if(parseInt(data) % 5 === 0){ console.log("Buzz") }else{ console.log(data); } } // Don't edit this line! Main(require("fs").readFileSync("/dev/stdin", "utf8"));