Your code needs to take 'exactly' one second or 'exactly' two seconds to run (depending on the input) — accurate to ±0.5 milliseconds.
The input will be the number of milliseconds to wait (i.e. 1000 or 2000). No output is required.
But the catch is that while waiting you have to 'take it easy'. In other words, you're not supposed to be working, so the CPU time should account for less than 5% of the time you've waited.
-----
Previous: Wait a second!
This hack has been disallowed in the updated Test Suite.
Project Euler: Problem 6, Natural numbers, squares and sums.
782 Solvers
135 Solvers
Getting the indices from a matrice
264 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
379 Solvers
Penny flipping - calculate winning probability (easy)
114 Solvers
Solution 1401955
Hello, Cody player. Your code here _can_ pass the Test Suite. You may have been a little unlucky with the Cody server when you submitted, but this same code passed as Solution 1403953. (Alternatively, it might be possible to tweak your code.) So I invite you to try again. —DIV.