Search found 4 matches

by MV
Fri Dec 13, 2002 10:12 am
Forum: Volume 3 (300-399)
Topic: 327 - Evaluating Simple C Expressions
Replies: 19
Views: 8175

OK, you are rigth about the unary operations. Here are some more test cases and the output my AC program gives. a + b b - z a+b--+c++ c+f--+--a f-- + c-- + d-++e a--+b--+c--+d--+e--+f--+g--+h--+i++-j++-k++-l++-m++-n++-o++-p++-q++-r++-s+t-u+v --z+a-- a z ++ x+--y+z++ a++-c++-m+ + +o+k output: Express...
by MV
Thu Dec 12, 2002 5:39 pm
Forum: Volume 3 (300-399)
Topic: 327 - Evaluating Simple C Expressions
Replies: 19
Views: 8175

Have you considered the following cases?

-a
+a

Anyway, test cases like a+b-a won't be in the input.
by MV
Thu Dec 05, 2002 3:57 pm
Forum: Volume 8 (800-899)
Topic: 838 - Worm World
Replies: 8
Views: 5228

Speed Up

A good thing to do is to determine the absolute maximum value of the answer before doing the DFS, and then quit searching if the maxvalue has been found. Helps a lot with a simple 0.144 grid. :lol:
by MV
Thu Oct 31, 2002 11:43 am
Forum: Volume 5 (500-599)
Topic: 502 - DEL command
Replies: 21
Views: 9068

Multiple input

Although not mentioned in the problem description, the problem input is in the multiple input format as indicated by the green submit icon in the contents list.
If your program knows this and still gets WA, your problem is somewhere else.

Go to advanced search