結果
問題 | No.63 ポッキーゲーム |
ユーザー |
|
提出日時 | 2020-07-26 16:44:31 |
言語 | PHP (843.2) |
結果 |
AC
|
実行時間 | 45 ms / 5,000 ms |
コード長 | 306 bytes |
コンパイル時間 | 517 ms |
コンパイル使用メモリ | 30,976 KB |
実行使用メモリ | 31,184 KB |
最終ジャッジ日時 | 2024-06-28 17:38:19 |
合計ジャッジ時間 | 2,227 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php /** * No.63 ポッキーゲーム * * @see https://yukicoder.me/problems/134 */ list($pockeyLengh, $eatLength) = explode(" ", trim(fgets(STDIN))); $count = floor($pockeyLengh / ($eatLength * 2)); if ($pockeyLengh % ($eatLength * 2) == 0) { $count--; } echo $eatLength * $count . "\n";