Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- // Mining rig
- int main()
- {
- double card, thing, current, win;
- cin >> card >> thing >> current >> win;
- double sum = card * 13 + thing * 13 + 1000;
- double perday = (win - current) * 13;
- double payback = ceil(sum / perday);
- printf("%.0f\n", sum);
- printf("%.0f\n", payback);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement