結果
| 問題 |
No.804 野菜が苦手
|
| コンテスト | |
| ユーザー |
Tlapesium
|
| 提出日時 | 2019-03-22 21:26:07 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 424 bytes |
| コンパイル時間 | 2,070 ms |
| コンパイル使用メモリ | 191,668 KB |
| 最終ジャッジ日時 | 2025-01-06 23:42:26 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 WA * 3 |
ソースコード
#include <bits/stdc++.h>
#define INF 2147483647
#define INF_LL 9223372036854775807
#define MOD 1000000007
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int ans = 0;
while (1) {
if (A == 0 || B == 0 || D == 0)break;
if (B >= C) {
B -= C; A--;
ans++;
D -= C + 1;
continue;
}
break;
}
cout << ans << endl;
}
Tlapesium