SHARE
TWEET

Untitled

a guest Jul 21st, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // function speedClimbing(input){
  2.  
  3. //     let currentBest = Number(input.shift());
  4. //     let distance = Number(input.shift());
  5. //     let speed = Number(input.shift());
  6. //     let neznam = Math.floor(distance/50)
  7. //     let newBest = distance * speed + neznam*30;
  8. //     let dif = currentBest - newBest
  9. //     dif = Math.abs(dif)
  10. // if (currentBest <= newBest){
  11. //     console.log(`No! He was ${dif} seconds slower.`);
  12. // }else
  13. // console.log(`Yes! The new record is ${newBest} seconds.`);
  14.  
  15. // }
  16. // speedClimbing([10164,1400,25]);
  17. // speedClimbing([5554.36,1340,3.23])
  18. // speedClimbing([1377,389,3])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top