結果

問題 No.804 野菜が苦手
ユーザー dyechidyechi
提出日時 2019-03-28 09:35:21
言語 PHP
(8.3.4)
結果
RE  
実行時間 -
コード長 197 bytes
コンパイル時間 4,425 ms
コンパイル使用メモリ 32,084 KB
実行使用メモリ 32,788 KB
最終ジャッジ日時 2024-04-20 14:42:35
合計ジャッジ時間 1,732 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
32,404 KB
testcase_01 AC 39 ms
32,404 KB
testcase_02 RE -
testcase_03 AC 34 ms
32,400 KB
testcase_04 AC 34 ms
32,528 KB
testcase_05 RE -
testcase_06 RE -
testcase_07 AC 34 ms
32,400 KB
testcase_08 AC 35 ms
32,400 KB
testcase_09 AC 36 ms
32,528 KB
testcase_10 AC 34 ms
32,400 KB
testcase_11 AC 34 ms
32,400 KB
testcase_12 AC 34 ms
32,400 KB
testcase_13 AC 36 ms
32,404 KB
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 AC 34 ms
32,404 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$s = trim(fgets(STDIN));
$s = explode(" ", $s);

for ($i=1; $i<=$s[0]; $i++) {
	if ($i*$s[2] <= $s[1] && $i + $i*$s[2] <= $s[3]){
	    $arr[] = $i;
	}
}
rsort($arr);
echo $arr[0].PHP_EOL;
?>
0