Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function spiceMustFlow(yield) {
- let days = 0;
- let storage = 0;
- while (yield >= 100) {
- let extracted = yield - 26;
- storage += extracted;
- days++;
- yield -= 10;
- if (yield < 100) {
- storage -= 26;
- }
- }
- console.log(days)
- console.log(storage)
- }
Advertisement
Add Comment
Please, Sign In to add comment