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 listApr 10, 2026 08:59limanjun99limanjun99Score: 9,371Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2026 08:599,361294,456,209270,472,0001,001,0002,269,184
2Apr 10, 2026 08:599,365296,476,060270,588,0001,002,0002,285,568
3Apr 10, 2026 08:599,371297,648,887270,750,000999,0002,285,568
4Apr 10, 2026 08:599,371301,429,746269,757,0001,998,0002,285,568
5Apr 10, 2026 08:599,371303,913,934269,769,0001,998,0002,281,472
6Apr 10, 2026 08:599,371298,397,827270,770,000999,0002,367,488
7Apr 10, 2026 08:599,372299,075,771269,798,0001,998,0002,285,568
8Apr 10, 2026 08:599,377297,850,546270,931,000999,0002,285,568
9Apr 10, 2026 08:599,378295,915,999269,964,0001,999,0002,285,568