結果

問題 No.311 z in FizzBuzzString
ユーザー shimadandyshimadandy
提出日時 2016-09-28 13:46:17
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 483 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 37,548 KB
最終ジャッジ日時 2023-10-25 02:47:11
合計ジャッジ時間 1,554 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

function Main(input) {

if (input.length > 9) {
	var value1 = Number(input.slice(9, 20));
	var value = (Math.floor(value1 / 3) + Math.floor(value1 / 5)) * 2;
	
	var value2 = Number(input.slice(0, 9)) * 100000000;
	value += (Math.floor(value2 / 3) + Math.floor(value2 / 5)) * 2;
} else {
	var value = Number(input);
	value = (Math.floor(value / 3) + Math.floor(value / 5)) * 2;
}

console.log(value);
}

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