Shouldn't this code give me runtime error from the judge?
I get WA.!!!!!
import java.io.*;
import java.util.*;
class Main {
public static void main(String args[]) throws Exception {
int i = 1/0;
}
}
Search found 7 matches
- Thu Sep 04, 2003 10:46 pm
- Forum: Java
- Topic: Why no runtime error?
- Replies: 4
- Views: 2804
- Thu Sep 04, 2003 10:43 pm
- Forum: Java
- Topic: Java Compiler is FLAWED!!
- Replies: 3
- Views: 2817
Agreed
I agree w/ you. This has happened to me too. I got a C++ friend to translate my java code exactly! and it was accepted. I am also suspicious of some other WA I got, cause no other Java programmer solved it either.
This sucks.
This sucks.
- Mon Aug 11, 2003 4:02 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10154 - Weights and Measures
- Replies: 60
- Views: 41957
- Sun Aug 10, 2003 4:17 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10154 - Weights and Measures
- Replies: 60
- Views: 41957
- Sat Aug 09, 2003 7:51 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10154 - Weights and Measures
- Replies: 60
- Views: 41957
- Sat Aug 09, 2003 7:47 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10152 - ShellSort
- Replies: 33
- Views: 10018
- Wed Aug 06, 2003 5:02 am
- Forum: Volume 7 (700-799)
- Topic: 732 - Anagrams by Stack
- Replies: 17
- Views: 12738
Hi shamim, TLE usually means that the way you are solving the problem is too slow and that you'll need to scrap it and find another way of doing things... (unless you did a silly typo which is causing the TLE). I solved this problem using brute force recursion. In your recursion branch out trying to...