結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-08 20:18:30 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
AC
|
| 実行時間 | 1,054 ms / 5,000 ms |
| コード長 | 451 bytes |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 6,684 KB |
| 実行使用メモリ | 42,880 KB |
| 最終ジャッジ日時 | 2024-09-19 17:00:03 |
| 合計ジャッジ時間 | 7,595 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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