Light is the fastest thing there is, yet it still takes time to cross space. You will make the program find how long light takes for several trips, and then show each time with the most sensible prefix, from nanoseconds to seconds.
The idea. , with . A good prefix keeps the number between and : reads better than .
Your tasks.
nice(t) choose the largest unit that is not bigger than t, and write the time in it.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…