Solved by 587 users: ...
UserDateAttemptTimeCMSC
sb3ar`03 may 2008`Ruby2400.0220
sb3ar`03 may 2008`Ruby2300.0221
Nakilon`20 feb 2010`Ruby1500.0224
Nakilon`20 feb 2010`Ruby1400.0228
Nakilon`20 feb 2010`Ruby1000.0230
Nakilon`20 feb 2010`Ruby1300.0230
Nakilon`20 feb 2010`Ruby800.0235
sb3ar`11 dec 2007`Ruby2100.0237
pinya`15 dec 2007`Ruby600.0239
pinya`15 dec 2007`Ruby700.0239
pinya`15 dec 2007`Ruby800.0240
pinya`15 dec 2007`Ruby500.0242
pinya`15 dec 2007`Ruby900.0243
evg281`22 aug 2006`Perl100.0647
sb3ar`11 dec 2007`Ruby2000.0251
sb3ar`22 apr 2007`Ruby900.0254
Morozova_175`23 may 2012`Python400.0694
stasg7`27 nov 2009`Ruby300.0295
xtender`16 apr 2010`Perl900.0695
stasg7`27 nov 2009`Ruby200.0299
lodin`29 sep 2006`Perl100.06101
provodok`25 jul 2009`Python200.06103
Vladimir_Sitnikov`12 dec 2005`C++400.02107
 C++ 295 FPC 136 C 88 Java 26 Kylix 26 Ruby 9 Python 7 Perl 4 Scheme 2
` >  >  >  >  >  >  >  >  >  > `

## Arithmetica 1.0

Time limit = 5 second(s)

Memory limit = 33000 Kb

You are the main programmer of Walfram Research Corp.

You should wrigh program Arithmetica v1.0, that works as calculator.

Arithmetica v1.0 calculates arithmetic expressions over integer numbers (not very long) constructed from brackets `( )` and binary operators `+ — *`. Unary minus is also allowed.

Operators have equal priority and should be calculated from left to right. It means that 1+1*2=4.

The number of symbols in input expression less than 1000.

Input One line with correct arithmetic expression less than 1000 symbols. Consider all numbers emerging during calculation of the expression small in absolute value, less than 230. Arithmetics of long integers will be realised in future versions.

Output One integer number — result of calculations.

 Input#1```1+1 ``` Output#1```2 ```
 Input#2```-1+(2*3) ``` Output#2```5 ```
 Input#3```1+(1+(1+(1-1)*2)*2)*2 ``` Output#3```14 ```
 Input#4```(((-1))) ``` Output#4```-1 ```
 Input#5```-1000*1000 ``` Output#5```-1000000 ```

Author:
Voroztsov Artem
26 March 2003

 © acm.mipt DevGroupThe page was generated in 210ms