Search found 163 matches

by Emilio
Sat Feb 05, 2005 12:26 am
Forum: Volume 8 (800-899)
Topic: 868 - Numerical Maze
Replies: 21
Views: 14583

Hello, I have seen this post, and I have decided to make three questions :) 1) Are there some tricky inputs? 2) When in the problem specification says the exit point is always a cell in the last line of the maze that is refered only for the last row, or for the other edges of the maze too? 3) Why is...
by Emilio
Mon Jan 31, 2005 11:57 pm
Forum: Volume 5 (500-599)
Topic: 545 - Heads
Replies: 67
Views: 43853

First, you must change

Code: Select all

if (casos>1)
by

Code: Select all

if (casos>=1)
Second, you only must sum 0.0001 if the fourth decimal digit (after the point) is == 5

Third, you must change "s" by "n" in printf function.
by Emilio
Mon Jan 31, 2005 4:49 am
Forum: Volume 5 (500-599)
Topic: 545 - Heads
Replies: 67
Views: 43853

I solved your problem, First, see another time my code in this post and see as I realized the output of the blank line, yours is wrong. Second, your results are right, you only must see if the fourth decimal digit is == 5, in this case sum 0.0001 at the result and print it. Only that. Good luck!!!
by Emilio
Sun Jan 30, 2005 11:40 pm
Forum: Volume 5 (500-599)
Topic: 545 - Heads
Replies: 67
Views: 43853

Your problem when you catch the input data is that you don't see if there is a blank line no time. You must do it as multiple input specification say. In the post where is my code you can see an example of this. By another way, I used Dev-C++, and with this compiler I have compared your result and m...
by Emilio
Sun Jan 30, 2005 7:41 am
Forum: Volume 5 (500-599)
Topic: 545 - Heads
Replies: 67
Views: 43853

Hi Antonio, Firstly, you must catch correctly the input. See my post, for example. Secondly, I have compared your output with mine for the 9000 possible cases and are the same!!! I have sent your code corrected and obtain WA!!! I think that is a problem of small differences with the compilers (I hav...
by Emilio
Mon Jan 24, 2005 4:41 am
Forum: Volume 5 (500-599)
Topic: 545 - Heads
Replies: 67
Views: 43853

ARRRRRRRRRRGGGGGGGGGHHHHHH!!!!! :x I GOT ACCEPTED!!! Thanks very very much Evan Tsang and nnahas!!!! I had a bug with '9' + 1 = ':'. I had another bug (maybe never I would have discovered), if you have 1.11550 the correct answer is 1.116, and for my previous program was 1.155, I thought that 1.155 w...
by Emilio
Sat Jan 22, 2005 12:46 pm
Forum: Volume 5 (500-599)
Topic: 545 - Heads
Replies: 67
Views: 43853

Hi nnahas, 1) You shouldn't get the number of cases from the input stream . The first line isn't the number of cases. it is the first number fot which you have to produce an output. 2)The remaining part of your input code is also wrong. As far as I understand you should only use getc in this program...
by Emilio
Sun Jan 16, 2005 12:42 am
Forum: Volume 5 (500-599)
Topic: 545 - Heads
Replies: 67
Views: 43853

545

Hi, I have tried this problem about thousands, and thousands of ways, but I always obtain WA. In this code I search the precision, but I don't get AC. Please, Can anyone say me what is the cases that is wrong in my code, please, or send me the 9000 posible cases with its output, please. I can't unde...
by Emilio
Sun Dec 26, 2004 1:33 am
Forum: Volume 3 (300-399)
Topic: 314 - Robot
Replies: 30
Views: 6495

I got ACCEPTED. :D
My mistake was that I forgot the walls of the room.

Thanks very much!!!
by Emilio
Sat Dec 25, 2004 10:31 pm
Forum: Volume 3 (300-399)
Topic: 314 - Robot
Replies: 30
Views: 6495

P314 Help, help, help, help, please!!!!

Hello, I can't discover my bug in my code. :( If you don't want see my code, can you give me the correct output for the next input? Thanks in advance. :wink: Here is the input: 9 10 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 ...
by Emilio
Thu Nov 25, 2004 8:01 pm
Forum: Off topic (General chit-chat)
Topic: How old are you? Statistics.
Replies: 121
Views: 175628

I'm 26. I started to solve problems about six months ago. I have solved 422 problems. 8)
by Emilio
Fri Oct 22, 2004 6:54 am
Forum: Volume 5 (500-599)
Topic: 551 - Nesting a Bunch of Brackets
Replies: 56
Views: 12146

Thanks very much jagadish!
I got AC to the first! :D
I only had a small mistake!
Thanks!
by Emilio
Sun Oct 17, 2004 8:38 pm
Forum: Volume 5 (500-599)
Topic: 551 - Nesting a Bunch of Brackets
Replies: 56
Views: 12146

551

Hi: Can anyone help me? I only need the outputs for this inputs, or others inputs/outputs with some special cases. Thanks! Input: (*adf(y)(* (*adf(y)( (a*) )() *)() ads()asdf (***) (** ({{]}] (**){*{]}] <>< <sgf(sfg[sfg{sfg(*sfgsdfg*)dhj}]dfh)> <sgf(sfg[sfg{sfg(*sfgsdfg*)dhj}]dfh)>< <sgf(sfg[sfg{sfg...

Go to advanced search