0146. Expression 2
Имя входного файла: | expr2.in |
Имя выходного файла: | expr2.out |
Ограничение по времени: | 2 s |
Ограничение по памяти: | 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 |
Источник: Petrozavodsk Summer 2003. Trinity Contest, Tuesday, August 26
Автор: Denis Koshman
Обсудить Отправить решение
Версия для печати