Search found 6 matches

by mourad.ghafiri
Fri Dec 28, 2012 5:32 am
Forum: Volume 116 (11600-11699)
Topic: 11636 - Hello World!
Replies: 30
Views: 6887

Re: 11636 - Hello World! - WA

"any negative number shouldn't processed" :)
so the test must be if(n<0) break;

finally it's AC
by mourad.ghafiri
Fri Dec 28, 2012 2:46 am
Forum: Volume 116 (11600-11699)
Topic: 11636 - Hello World!
Replies: 30
Views: 6887

11636 - Hello World! - WA

is there any problem with the server ??!!! because i generated all possible answers (1 to 10000 ) from uvatoolkit and it gives the same result i get with my solution but the server answers me with WA: my code : import java.util.Scanner; public class Main{ public static void main(String[] args) { Sca...
by mourad.ghafiri
Sun Dec 23, 2012 3:58 am
Forum: Volume 104 (10400-10499)
Topic: 10422 - Knights in FEN
Replies: 49
Views: 18107

Re: 10422 - Knights in FEN : WA !!!

ok it works fine...

it has just problem in using StingBuffred ; i used a direct System.out.println and it works :)

and i had a shift in the cost (gn) ... it must start with 0 .
by mourad.ghafiri
Sat Dec 22, 2012 8:58 am
Forum: Volume 104 (10400-10499)
Topic: 10422 - Knights in FEN
Replies: 49
Views: 18107

10422 - Knights in FEN : WA !!!

hello guys please can you help me i represent the problem as a graph and then i used the A* algorithm whit heuristic equals to the out of place knights it converges rapidly to the answer but i don't know where exatly the problem here is my code import java.util.PriorityQueue; import java.util.Scanne...
by mourad.ghafiri
Thu Dec 20, 2012 11:31 pm
Forum: Volume 100 (10000-10099)
Topic: 10067 - Playing with Wheels
Replies: 62
Views: 24622

Re: 10067 - Playing with Wheels WA !!!!!

finally it is AC
i had a problem in the heuristic function it is incorrect and also i replaced system.out.println in each case by a BuffredString to add up the reslt of each case
and here it is , it works
thank you guys for !! :)
by mourad.ghafiri
Thu Dec 20, 2012 9:29 pm
Forum: Volume 100 (10000-10099)
Topic: 10067 - Playing with Wheels
Replies: 62
Views: 24622

10067 - Playing with Wheels WA !!!!!

i used the most efficient algorithm and also i handled all cases i think it'll give a wrong answer but still wrong answer ... any one can help!! import java.util.PriorityQueue; import java.util.Scanner; import java.util.Vector; class LockState implements Comparable<LockState>{ String value; int hn=0...

Go to advanced search