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:07marko1597marko1597Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 18:58Tomislav Tunkovic16.68CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 19:02027,899,74314,925,0002,208,00016,384No answer to stdout. Died or killed?
2Aug 14, 2026 13:112,75389,820,89476,836,0003,029,0002,113,536
3Aug 14, 2026 13:112,75389,780,87176,857,0002,997,0002,113,536
4Aug 14, 2026 13:112,75589,941,61376,880,0003,029,0002,113,536
5Aug 14, 2026 13:112,75790,771,90476,821,0003,156,0002,113,536
6Aug 14, 2026 13:112,75890,034,40776,846,0003,152,0002,113,536
7Aug 14, 2026 13:112,75990,772,43476,876,0003,154,0002,113,536
8Aug 14, 2026 13:112,76090,335,88376,928,0003,134,0002,113,536
9Aug 14, 2026 13:112,76090,035,90976,891,0003,158,0002,113,536
10Aug 14, 2026 13:112,76390,111,33776,859,0003,284,0002,113,536