fork download
  1. class TestLoop {
  2. public static void main(String[] args)
  3. {
  4. float num = 2147483647; // this works if I change this to 2147483583
  5. int last = 0;
  6. for (int roll = 1; roll <= num; roll++)
  7. last = roll;
  8. System.out.println(last);
  9. }
  10. }
Time limit exceeded #stdin #stdout 5s 4386816KB
stdin
Standard input is empty
stdout
Standard output is empty