結果

問題 No.63 ポッキーゲーム
ユーザー mondomondo
提出日時 2019-08-20 00:26:56
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 237 bytes
コンパイル時間 53 ms
コンパイル使用メモリ 5,272 KB
実行使用メモリ 42,468 KB
最終ジャッジ日時 2023-08-03 03:27:51
合計ジャッジ時間 2,944 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
42,272 KB
testcase_01 AC 84 ms
42,252 KB
testcase_02 AC 83 ms
42,368 KB
testcase_03 AC 77 ms
42,428 KB
testcase_04 AC 78 ms
42,440 KB
testcase_05 AC 75 ms
42,468 KB
testcase_06 AC 75 ms
42,252 KB
testcase_07 AC 77 ms
42,344 KB
testcase_08 AC 77 ms
42,260 KB
testcase_09 AC 76 ms
42,348 KB
testcase_10 AC 77 ms
42,352 KB
testcase_11 AC 78 ms
42,292 KB
testcase_12 AC 77 ms
42,424 KB
testcase_13 AC 79 ms
42,356 KB
testcase_14 AC 78 ms
42,392 KB
testcase_15 AC 77 ms
42,260 KB
testcase_16 AC 78 ms
42,432 KB
testcase_17 AC 78 ms
42,368 KB
testcase_18 AC 77 ms
42,360 KB
testcase_19 AC 79 ms
42,224 KB
testcase_20 AC 77 ms
42,252 KB
testcase_21 AC 79 ms
42,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

const main = require('fs').readFileSync('/dev/stdin','utf8').trim();
let allpocky, onepocky;
[allpocky, onepocky] = main.split(' ').map(Number);
// console.log(array);
console.log(Math.floor((allpocky - 1) / (onepocky * 2)) * onepocky);
0