結果

問題 No.477 MVP
ユーザー kagikakko_karikagikakko_kari
提出日時 2017-01-28 00:19:33
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 131 bytes
コンパイル時間 1,087 ms
コンパイル使用メモリ 18,424 KB
実行使用メモリ 18,964 KB
最終ジャッジ日時 2023-08-25 11:16:38
合計ジャッジ時間 2,013 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
18,624 KB
testcase_01 WA -
testcase_02 AC 15 ms
18,728 KB
testcase_03 AC 14 ms
18,660 KB
testcase_04 WA -
testcase_05 AC 15 ms
18,792 KB
testcase_06 AC 15 ms
18,812 KB
testcase_07 AC 15 ms
18,812 KB
testcase_08 AC 15 ms
18,632 KB
testcase_09 AC 15 ms
18,616 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 == floor($q)){
echo $q + 1;
}else{
echo ceil($q);
}
?>
0