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