結果
| 問題 | No.804 野菜が苦手 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-22 21:54:32 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 365µs | |
| コード長 | 405 bytes |
| 記録 | |
| コンパイル時間 | 846 ms |
| コンパイル使用メモリ | 174,004 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-19 00:45:01 |
| 合計ジャッジ時間 | 2,222 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define REP(i,N) for(i=0;i<N;i++)
typedef long long ll;
typedef pair<int, int> P;
typedef struct{
int first;
int second;
int third;
}T;
//昇順
bool comp_Se(T& l, T& r){
return l.second < r.second;
}
int main(void){
int A,B,C,D;
cin >> A >> B >> C >> D;
int num = min(D/(C+1),A);
if(num*C > B)num = B/C;
cout << num << endl;
return 0;
}