結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
michiru
|
| 提出日時 | 2019-11-18 14:49:27 |
| 言語 | PHP (843.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 197 bytes |
| コンパイル時間 | 2,626 ms |
| コンパイル使用メモリ | 32,016 KB |
| 実行使用メモリ | 32,912 KB |
| 最終ジャッジ日時 | 2024-10-01 15:02:33 |
| 合計ジャッジ時間 | 4,232 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 17 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
list($l, $k) = explode(" ", (trim(fgets(STDIN))));
$ans = 0;
if (($l/2) % $k > 0) {
$ans = intval(($l/2) / $k) * $k;
} elseif ($k == 1) {
$ans = (($l + 1) / 2) - 1;
}
echo $ans."\n";
michiru