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 ...
Search found 4 matches
- Fri Dec 13, 2002 10:12 am
- Forum: Volume 3 (300-399)
- Topic: 327 - Evaluating Simple C Expressions
- Replies: 19
- Views: 10605
- Thu Dec 12, 2002 5:39 pm
- Forum: Volume 3 (300-399)
- Topic: 327 - Evaluating Simple C Expressions
- Replies: 19
- Views: 10605
- Thu Dec 05, 2002 3:57 pm
- Forum: Volume 8 (800-899)
- Topic: 838 - Worm World
- Replies: 8
- Views: 6319
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. 

- Thu Oct 31, 2002 11:43 am
- Forum: Volume 5 (500-599)
- Topic: 502 - DEL command
- Replies: 21
- Views: 13500
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.
If your program knows this and still gets WA, your problem is somewhere else.