結果
問題 | No.804 野菜が苦手 |
ユーザー |
|
提出日時 | 2019-04-14 16:08:23 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 196 bytes |
コンパイル時間 | 2,085 ms |
コンパイル使用メモリ | 191,784 KB |
最終ジャッジ日時 | 2025-01-07 02:10:33 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,d; cin>>a>>b>>c>>d; for(int i=a;i>=0;i--){ if(((i+c*i)<=d)&&(c*i<=b)){ cout<<i<<endl; return 0; } } return 0; }