mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-08 02:13:51 +08:00
Finish: Luogu Beginer Conest(Feb)
This commit is contained in:
23
[语言月赛 202502] 蛋挞烤制.cpp
Normal file
23
[语言月赛 202502] 蛋挞烤制.cpp
Normal file
@ -0,0 +1,23 @@
|
||||
#include <bits/stdc++.h>
|
||||
#define lo long long
|
||||
#define INF INT_MAX
|
||||
#define LLM LONG_LONG_MAX
|
||||
|
||||
using namespace std;
|
||||
const lo N = 1e7 + 10;
|
||||
/*
|
||||
toothless. #17
|
||||
@fredcss_dev
|
||||
*/
|
||||
|
||||
signed main() {
|
||||
lo V_egg, V_milk, V_tart;
|
||||
lo e, m, t;
|
||||
cin >> V_egg >> V_milk >> V_tart;
|
||||
cin >> e >> m >> t;
|
||||
lo total_volume = V_egg * e + V_milk * m;
|
||||
lo num_tarts = (total_volume + V_tart - 1) / V_tart;
|
||||
lo batches = (num_tarts + t - 1) / t;
|
||||
cout << batches << endl;
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user