結果

問題 No.63 ポッキーゲーム
ユーザー michirumichiru
提出日時 2019-11-18 13:53:39
言語 PHP
(8.3.4)
結果
TLE  
実行時間 -
コード長 156 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 32,276 KB
実行使用メモリ 64,420 KB
最終ジャッジ日時 2024-04-09 02:11:52
合計ジャッジ時間 7,558 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
64,420 KB
testcase_01 AC 37 ms
32,400 KB
testcase_02 AC 38 ms
32,272 KB
testcase_03 AC 38 ms
32,528 KB
testcase_04 AC 38 ms
32,216 KB
testcase_05 AC 38 ms
32,272 KB
testcase_06 AC 37 ms
32,272 KB
testcase_07 AC 41 ms
32,400 KB
testcase_08 AC 39 ms
32,400 KB
testcase_09 AC 61 ms
32,276 KB
testcase_10 AC 261 ms
32,528 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
list($l, $k) = explode(" ", (trim(fgets(STDIN))));
$ans;$m = 0;
while ( $l > 0 ) {
    $l -= $k * 2;
    $m++;
}
$ans = ($m - 1) * $k;
echo $ans."\n";
0