sugiartocokrowibowo / zoj

Automatically exported from code.google.com/p/zoj
GNU General Public License v3.0
0 stars 0 forks source link

Wrong run time for Java submissions #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
For all the java submissions that do not get TLE, the run time is always 
0ms.
For example, the following code will get WA with run time 0ms on a problem 
with 10s time limit (e.g. 1009):

public class Main {
    public static void main(String[] args) throws Exception {
        long start = System.currentTimeMillis();
        while (System.currentTimeMillis() - start <= 9000);
    }
}

Original issue reported on code.google.com by Charizar...@gmail.com on 31 Dec 2008 at 12:27

GoogleCodeExporter commented 8 years ago
i've tried to fix this in r359, and seems have passed all the unittests

Original comment by mikeandm...@gmail.com on 15 Jun 2009 at 1:20