結果

問題 No.311 z in FizzBuzzString
ユーザー n3k2t1n3k2t1
提出日時 2019-07-12 00:32:50
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 69 ms / 1,500 ms
コード長 205 bytes
コンパイル時間 37 ms
コンパイル使用メモリ 5,152 KB
実行使用メモリ 37,532 KB
最終ジャッジ日時 2023-10-25 02:58:53
合計ジャッジ時間 1,442 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

const lines = require('fs')
  .readFileSync('/dev/stdin', 'utf-8')
  .trim().split('\n').values();

const N = BigInt(lines.next().value);
const ans = (N / 3n + N / 5n) * 2n;

console.log(ans.toString(10));
0