Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function goldMine (input) {
- let index = 0;
- let numLocation = Number(input[index++])
- let gold = 0;
- for (let i = 0; i <= numLocation; i++) {
- let goldYield = Number(input[index++]);
- let daysDig = Number(input[index++]);
- for (let d = 0; d < daysDig; d++) {
- let dayDig = Number(input[index++]);
- console.log(dayDig)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement