Search found 7 matches

by farsight
Thu Sep 04, 2003 10:46 pm
Forum: Java
Topic: Why no runtime error?
Replies: 4
Views: 2804

Why no runtime error?

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;
}
}
by farsight
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.
by farsight
Mon Aug 11, 2003 4:02 pm
Forum: Volume 101 (10100-10199)
Topic: 10154 - Weights and Measures
Replies: 60
Views: 41957

Thanks...
Could you give me a hint as to the recurrence for the solution? :D
by farsight
Sun Aug 10, 2003 4:17 pm
Forum: Volume 101 (10100-10199)
Topic: 10154 - Weights and Measures
Replies: 60
Views: 41957

What's the algorithmic complexity for solving this problem?
:wink:
Thanks.
by farsight
Sat Aug 09, 2003 7:51 pm
Forum: Volume 101 (10100-10199)
Topic: 10154 - Weights and Measures
Replies: 60
Views: 41957

What's LIS?
Longest Increasing Sequence?
:roll:
Thanks
by farsight
Sat Aug 09, 2003 7:47 pm
Forum: Volume 101 (10100-10199)
Topic: 10152 - ShellSort
Replies: 33
Views: 10018

hmm... I hope this isn't giving it away...

Look at how many turtles are properly in their increasing (not necessary consecutive) order. Then the solution should be obvious. :P

Good luck.
by farsight
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...

Go to advanced search