結果
| 問題 | No.63 ポッキーゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-08 20:18:30 |
| 言語 | JavaScript (node v25.8.2) |
| 結果 |
AC
|
| 実行時間 | 367 ms / 5,000 ms |
| コード長 | 451 bytes |
| 記録 | |
| コンパイル時間 | 83 ms |
| コンパイル使用メモリ | 8,096 KB |
| 実行使用メモリ | 59,360 KB |
| 最終ジャッジ日時 | 2026-04-08 04:22:18 |
| 合計ジャッジ時間 | 5,755 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
"use strict";
function Main(input) {
const PockeyLength = Number(input.split(" ")[0]);
const BiteLength = Number(input.split(" ")[1]);
let AteLength = 0;
do {
AteLength += BiteLength;
} while (PockeyLength > AteLength * 2);
console.log(AteLength - BiteLength);
}
//テストの入力を受け取る
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
//Main("100 50");
//# sourceMappingURL=index.js.map