結果

問題 No.63 ポッキーゲーム
ユーザー Ruizi_LuigiRuizi_Luigi
提出日時 2015-11-04 09:09:47
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 163 bytes
コンパイル時間 582 ms
コンパイル使用メモリ 18,556 KB
実行使用メモリ 18,916 KB
最終ジャッジ日時 2023-10-11 13:38:58
合計ジャッジ時間 1,946 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 14 ms
18,844 KB
testcase_04 AC 15 ms
18,688 KB
testcase_05 WA -
testcase_06 AC 15 ms
18,740 KB
testcase_07 AC 15 ms
18,824 KB
testcase_08 WA -
testcase_09 AC 15 ms
18,664 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 15 ms
18,704 KB
testcase_13 AC 15 ms
18,516 KB
testcase_14 AC 15 ms
18,760 KB
testcase_15 AC 15 ms
18,544 KB
testcase_16 AC 15 ms
18,700 KB
testcase_17 AC 15 ms
18,712 KB
testcase_18 AC 15 ms
18,732 KB
testcase_19 AC 15 ms
18,748 KB
testcase_20 AC 15 ms
18,512 KB
testcase_21 AC 15 ms
18,700 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php

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


echo $l/($k*2) * $k % $k == 0 ? (floor($l/($k*2))-1) * $k : floor($l/($k*2)) * $k;
0