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 listAug 14, 2026 13:18marko1597marko1597Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 17:05C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 17:05011,574,6591,685,000024,576No answer to stdout. Died or killed?
2Aug 14, 2026 13:192,69689,001,88475,669,0002,542,0002,113,536
3Aug 14, 2026 13:192,69788,959,34375,691,0002,532,0002,113,536
4Aug 14, 2026 13:192,69788,995,76375,662,0002,555,0002,113,536
5Aug 14, 2026 13:192,69788,252,49175,650,0002,575,0002,113,536
6Aug 14, 2026 13:192,69788,919,72475,655,0002,566,0002,113,536
7Aug 14, 2026 13:192,69789,021,74275,696,0002,524,0002,113,536
8Aug 14, 2026 13:192,69788,337,69075,696,0002,539,0002,113,536
9Aug 14, 2026 13:192,69889,030,37175,708,0002,549,0002,113,536
10Aug 14, 2026 13:192,70288,451,41475,671,0002,688,0002,113,536