Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // function speedClimbing(input){
- // let currentBest = Number(input.shift());
- // let distance = Number(input.shift());
- // let speed = Number(input.shift());
- // let neznam = Math.floor(distance/50)
- // let newBest = distance * speed + neznam*30;
- // let dif = currentBest - newBest
- // dif = Math.abs(dif)
- // if (currentBest <= newBest){
- // console.log(`No! He was ${dif} seconds slower.`);
- // }else
- // console.log(`Yes! The new record is ${newBest} seconds.`);
- // }
- // speedClimbing([10164,1400,25]);
- // speedClimbing([5554.36,1340,3.23])
- // speedClimbing([1377,389,3])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement