Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Lovedek_ellovesi_tavolsag_kalkulator
//JavaScript-C24.2.0 (SpiderMonkey) const v_start = 240 var t = readline() var s = 0 if (t>=0&&t<=4){ if(t<=1&&t>0){ s = t*v_start } if(t>1&&t<=4){ const rem = t-1 s = v_start + (v_start + (v_start*(3-rem)/3))/2*rem } if(s%1!=0){ print(s + " ~" + Math.round(s) + "m"); } else print(s + "m"); } else print("wat")
run
|
edit
|
history
|
help
0
123141242342
Iterate the iteratable object from the iterator object
WC
2k Dreamin
TaskhelTemplate
#include
Bhbhbh
Arrays
on_off
Change format Numbers