Page 1 of 1

1004 - Traversing Grid

Posted: Mon Feb 06, 2012 12:57 pm
by dovier

Re: 1004 - Traversing Grid

Posted: Sat Sep 01, 2012 6:12 pm
by Mindiell
Hi, I'm trying to resolve this problem. Everything is working fine on my computer, but I'm stuck on the first test, saying that there is a wrong answer.
I surely have a problem of output, but I can't see where...

Can I have access (MP for exemple) to the first test and it's answer ? Because I can't understand why there is a problem.
Thx

Re: 1004 - Traversing Grid

Posted: Mon Sep 03, 2012 10:21 am
by george
Mindiell wrote: Can I have access (MP for exemple) to the first test and it's answer ? Because I can't understand why there is a problem.
Thx
Mr Mindiell we do not publish the datasets of the problems , what you can do is to explain the algorithm you are using and surely someone will advice you or find the problem of your code.

hope you understand

Re: 1004 - Traversing Grid

Posted: Mon Sep 10, 2012 4:01 pm
by Mindiell
Well, I understand, but when I try the example of the problem, it seems taht everything is fine.
I know that I can't post my code, I can post the output :

Code: Select all

me@my-laptop:~/path$ python 1004\ -\ Traversing\ Grid.py 
4
1 1
2 2
3 1
3 3
R
L
D
R
me@my-laptop:~/path$
And I did some other tests, by hand and with my program : everything is just fine...

Re: 1004 - Traversing Grid

Posted: Mon Sep 10, 2012 4:49 pm
by JJRZ
Mindiell wrote: I understand, but when I try the example of the problem, it seems taht everything is fine.
You should know that the examples are not enough, in fact, the key cases (cases that we generally forget) don't hardly ever appear in the example
george wrote: what you can do is to explain the algorithm you are using and surely someone will advice you or find the problem of your code.
Why don't you explain to us your algorithm?

This is my advice... Regards

Re: 1004 - Traversing Grid

Posted: Mon Oct 08, 2012 2:24 pm
by Mindiell
One month later, I'm back :)

Well, I finally get it !
It was just a conversion problem because 20 is greater than 3 but not within strings ;)