結果
| 問題 | 
                            No.804 野菜が苦手
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2019-08-02 13:33:58 | 
| 言語 | PHP  (843.2)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 362 bytes | 
| コンパイル時間 | 78 ms | 
| コンパイル使用メモリ | 30,980 KB | 
| 実行使用メモリ | 31,472 KB | 
| 最終ジャッジ日時 | 2024-07-05 08:05:11 | 
| 合計ジャッジ時間 | 1,667 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 11 WA * 7 | 
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
$input=explode(" ", (trim(fgets(STDIN))));
$vege=(int)$input[0];
$meat=(int)$input[1];
$meatPerVege=(int)$input[2];
$upperFoodLimit=(int)$input[3];
$upperNmbTimes=floor($upperFoodLimit/(1+$meatPerVege));
if($upperNmbTimes>$vege){
  $upperNmbTimes=$vege;
}
if($upperNmbTimes>$meat/$meatPerVege){
  $upperNmbTimes=$meat/$meatPerVege;
}
echo $upperNmbTimes;