結果
| 問題 |
No.804 野菜が苦手
|
| コンテスト | |
| ユーザー |
hiro_ei1812
|
| 提出日時 | 2019-09-24 18:19:30 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 294 bytes |
| コンパイル時間 | 418 ms |
| コンパイル使用メモリ | 53,976 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-19 05:11:40 |
| 合計ジャッジ時間 | 1,093 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 WA * 9 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int A,B,C,D;
int veg=0,meat=0,i,j;
int total;
cin>>A>>B>>C>>D;
total=C+1;
while(total<=D && veg<A && meat<B){
total=veg+meat;
veg++;
meat=veg*C;
}
cout<<veg<<endl;
return 0;
}
hiro_ei1812