0146. Expression 2
Input file name: | expr2.in |
Output file name: | expr2.out |
Time limit: | 2 s |
Memory limit: | 64 megabytes |
Consider expression evaluation program from the problem D (Expression 1). The input format here is the same as for the problem D's original problem input. The differences are that the input line is no longer than 100 characters, integer constants may be arbitrary large (or small), there are no overflow rules and there is no division operation. All you need at this one is to find the expression value.
Examples:
expr2.in | expr2.out |
---|---|
1-2 | -1 |
(10000000000000000000000000*-3)-1 | -30000000000000000000000001 |
Source: Petrozavodsk Summer 2003. Trinity Contest, Tuesday, August 26
Author: Denis Koshman
Discuss Submit a solution