結果
| 問題 |
No.804 野菜が苦手
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2019-03-22 21:23:41 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 263 bytes |
| コンパイル時間 | 502 ms |
| コンパイル使用メモリ | 67,540 KB |
| 最終ジャッジ日時 | 2025-01-06 23:40:57 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 WA * 1 |
ソースコード
#include <iostream>
using namespace std;
int main()
{
int a, b, c, d;
cin>>a>>b>>c>>d;
int res=0;
for(int i=1; i<=a; ++i) {
if (b>=c and d>c) {
++res;
b-=c;
d-=c;
}
}
cout<<res<<endl;
}
hogeover30