Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Solve(args) {
- var input = args[0].split(' ');
- var student = parseInt(input[0]);
- var perBox = parseInt(input[1]);
- var cost = parseFloat(input[2]);
- var ofBoxes = ((student + 1) / perBox).toFixed(0);
- console.log(Math.ceil((ofBoxes * cost) / 10) * 10);
- }
Add Comment
Please, Sign In to add comment