Search found 4 matches

by jonas
Fri Dec 13, 2002 12:18 pm
Forum: Volume 3 (300-399)
Topic: 327 - Evaluating Simple C Expressions
Replies: 19
Views: 8294

Thank you for your help. I have modified my program to deal with empty lines, so now my output for the test cases you supplied matches yours exactly.

But alas... still WA.
by jonas
Thu Dec 12, 2002 10:31 pm
Forum: Volume 3 (300-399)
Topic: 327 - Evaluating Simple C Expressions
Replies: 19
Views: 8294

Have you considered the following cases? -a +a Anyway, test cases like a+b-a won't be in the input. I have intentionally ignored those cases, since unary plus and minus are not mentioned in the problem description. But you are right about Yarin's test cases - they do contain some lines with "undefi...
by jonas
Wed Dec 11, 2002 2:35 am
Forum: Volume 3 (300-399)
Topic: 327 - Evaluating Simple C Expressions
Replies: 19
Views: 8294

Yarin wrote:Here's some sample input and my programs (which is AC) output. Maybe it can help?

<snip input and output>
I could use some help with this one. I still get Wrong Answer, even though my program works with Yarin's input and output data. I am stumped.
:cry:
by jonas
Mon Nov 25, 2002 3:02 am
Forum: Volume 5 (500-599)
Topic: 524 - Prime Ring Problem
Replies: 74
Views: 19235

Robbie wrote:What about other inputs ?
Here is outputs from my AC program :

Code: Select all

2   : 1
4   : 2
6   : 2
8   : 4
10  : 96
12  : 1024
14  : 2880
16  : 81024
May be this will help ! :roll:
I have exactly this amount of output, but I get "Wrong answer" anyway. I don't understand what's wrong.

Go to advanced search