Arithmetic expressions Sergey Svistunov

Evaluate 100 arithmetic expressions as fast as possible.

Input

One expression per line on STDIN. Each expression contains 50,000 int16 numbers with operators +, -, *, / (integer division) and parentheses (, ).

-19550 - ((-14208 / (13583 + -19215)) + (-16832 / 797 + (9060 / -23627)) + ((-6060) + 24953))
30835 - 3703 - (-20089 * -6261 + ((-28985 - 29627) + (-17828 - (22773 / -4014) * 1630)))

Output

Print the int64 result of each expression, one per line, to STDOUT.

Back to listSep 13, 2026 14:45Andrew EpsteinAndrew EpsteinScore: 4,495Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 13, 2026 14:464,492140,543,368129,221,0001,050,0002,125,824stderr
2Sep 13, 2026 14:464,492140,651,464129,230,0001,060,0002,125,824stderr
3Sep 13, 2026 14:464,493140,522,253129,273,0001,046,0002,125,824stderr
4Sep 13, 2026 14:464,495140,640,409129,318,0001,058,0002,125,824stderr
5Sep 13, 2026 14:464,495140,722,301129,323,0001,055,0002,125,824stderr
6Sep 13, 2026 14:464,496141,545,012129,249,0001,153,0002,125,824stderr
7Sep 13, 2026 14:464,496141,555,315129,242,0001,144,0002,125,824stderr
8Sep 13, 2026 14:464,499140,808,440129,365,0001,130,0002,125,824stderr
9Sep 13, 2026 14:464,500140,795,768129,393,0001,117,0002,125,824stderr