結果
| 問題 | No.804 野菜が苦手 |
| コンテスト | |
| ユーザー |
hiro_ei1812
|
| 提出日時 | 2019-09-24 18:08:53 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 252 ms |
| コンパイル使用メモリ | 71,988 KB |
| 実行使用メモリ | 9,816 KB |
| 最終ジャッジ日時 | 2026-08-30 20:06:33 |
| 合計ジャッジ時間 | 1,816 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 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