Search found 7 matches

by PVM
Thu Apr 12, 2007 7:05 am
Forum: Volume 111 (11100-11199)
Topic: 11151 - Longest Palindrome
Replies: 65
Views: 33012

I am getting the same output but uva judge giving me wrong answer :lol: /* @JUDGE_ID: 60332ER 11151 Java "Easy algorithm" */ import java.io.*; import java.util.*; class Main{ static int[][] result; static String ReadLn (int maxLg) { byte lin[] = new byte [maxLg]; int lg = 0, car = -1; String line = ...
by PVM
Tue Apr 10, 2007 9:25 am
Forum: Volume 111 (11100-11199)
Topic: 11198 - Dancing Digits
Replies: 16
Views: 8143

Re: how you can use BFS?

sclo wrote: Here, it is not hard to see what the states are and how to go from one state to another state.
.. still i dont understand why it is meant by state. i tried to use insertion sort algorithm, but got WA. can you explain a bit more how I can use graph??
by PVM
Tue Apr 10, 2007 7:44 am
Forum: Java
Topic: Anyone knows how to speed up JAVA a little bit?
Replies: 9
Views: 7370

having skimmed through all the replies, i found no easier solution than using C. I also tried with java for my first problem and voila!. Time Limit Exceed.
Actually, it will take me less time to rewrite my code in C/C++ than making my java code faster.

so GO FOR C.. atleast for 24 hours judge.
by PVM
Mon Apr 09, 2007 7:04 pm
Forum: Volume 111 (11100-11199)
Topic: 11151 - Longest Palindrome
Replies: 65
Views: 33012

TLE

getting TLE, any idea?? :evil:



would appreciate some help on it, looking forward to write in C if it helps!![code]code removed.. even though not accepted yet!! [/code]
by PVM
Mon Apr 09, 2007 9:06 am
Forum: Off topic (General chit-chat)
Topic: What is your record of solved problems during one day?
Replies: 18
Views: 68933

it has been a week here in acm.uva.es, i havent solved a single one :cry:
by PVM
Mon Apr 09, 2007 9:04 am
Forum: Off topic (General chit-chat)
Topic: What game do you like best?
Replies: 17
Views: 62022

it depends, when it is a football worldcup, i like football. when it is cricket, i like cricket. But as said before, i like programming partly because of the brevity of my social activities :lol: ( no offense )
by PVM
Mon Apr 09, 2007 7:43 am
Forum: Volume 111 (11100-11199)
Topic: 11198 - Dancing Digits
Replies: 16
Views: 8143

how you can use BFS?

Hi I have been in acm site for 1 week. so i am pretty novice.
i cannot understand the fact how you can use BFS or a Graph for instance in this problem? can anyone explain in brief? :D

Go to advanced search