結果

問題 No.63 ポッキーゲーム
ユーザー Ruizi_LuigiRuizi_Luigi
提出日時 2015-11-04 09:01:51
言語 PHP
(8.3.4)
結果
TLE  
実行時間 -
コード長 223 bytes
コンパイル時間 1,135 ms
コンパイル使用メモリ 18,664 KB
実行使用メモリ 18,932 KB
最終ジャッジ日時 2023-10-11 13:38:53
合計ジャッジ時間 8,945 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
18,832 KB
testcase_01 AC 15 ms
18,908 KB
testcase_02 AC 15 ms
18,916 KB
testcase_03 AC 15 ms
18,692 KB
testcase_04 AC 15 ms
18,800 KB
testcase_05 AC 15 ms
18,760 KB
testcase_06 AC 15 ms
18,836 KB
testcase_07 AC 26 ms
18,820 KB
testcase_08 AC 20 ms
18,932 KB
testcase_09 AC 79 ms
18,668 KB
testcase_10 AC 621 ms
18,896 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

// your code goes here
list($l, $k) = explode(' ', trim(fgets(STDIN)));

$eatin = 0;
$finish = false;
do {
	if ($eatin*2 + $k*2 >= $l) {
		$finish = true;
	} else {
		$eatin += $k;
	}
} while(!$finish);

echo $eatin;
0