結果

問題 No.477 MVP
ユーザー kagikakko_karikagikakko_kari
提出日時 2017-01-27 22:33:20
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 130 bytes
コンパイル時間 1,517 ms
コンパイル使用メモリ 18,504 KB
実行使用メモリ 18,984 KB
最終ジャッジ日時 2023-08-25 04:04:50
合計ジャッジ時間 1,620 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
18,648 KB
testcase_01 WA -
testcase_02 AC 15 ms
18,868 KB
testcase_03 AC 16 ms
18,772 KB
testcase_04 WA -
testcase_05 AC 15 ms
18,824 KB
testcase_06 AC 16 ms
18,776 KB
testcase_07 AC 15 ms
18,872 KB
testcase_08 AC 15 ms
18,876 KB
testcase_09 AC 16 ms
18,696 KB
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
list($n,$k) = explode(" ",trim(fgets(STDIN)));
$q = $n/($k + 1);
if($q == ceil($q)){
echo $q + 1;
}else{
echo ceil($q);
}
?>
0