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 listOct 7, 2026 16:51Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 7, 2026 16:5101,683,514,9621,673,746,000020,480line 0: expected -35560426601 got 18657 18619 18622 18696 18798 19203 18793 18793
2Oct 7, 2026 16:5101,685,186,9231,676,098,000020,480line 0: expected -137984284294 got 18684 18614 18596 18714 18837 19273 18837 18840
3Oct 7, 2026 16:5101,683,023,1221,673,792,000020,480line 0: expected 21360505824 got 18655 18607 18584 18754 18785 19213 18811 18786