← Back to topics
Topic

Back to the barn

m
mahmutm2
can anyone tell me?

I write the code for this problem with C++ and i take 4/10,

i write with C, a take 10/10.

why it like this?
d
demjan0001
well program in C is wrong, too ...
but test cases are very bad ...
well lower left corner is at position [ROW-1][0] and upper right corner is at position [0][COLUMN-1] ...
try your C code (which is AC code) for test example:
3 4 6
.T..
TT..
....

your program prints 0, but solution is 3 ...
I don't know is that only problem, but i saw that first ...
m
matijazzz
in my code (in pascal) I get 3 as a result but it runs only 4/10 .. And I don't know where I made mistake ..
here's my code ...
http://www.z-trening.com/submit.php?submit=7100121029&subm_code=1