結果
| 問題 |
No.804 野菜が苦手
|
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2020-03-12 13:41:05 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 268 bytes |
| コンパイル時間 | 1,656 ms |
| コンパイル使用メモリ | 165,224 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 19:45:37 |
| 合計ジャッジ時間 | 1,971 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 WA * 3 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
int A, B, C, D;
cin >> A >> B >> C >> D;
int ans = 0;
for( ans = 0; ans <= A; ans++ ) {
int b = ans * C;
int d = ans + b;
if( b > B || d > D ) {
ans--;
break;
}
}
cout << ans << endl;
}
forest3