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 16, 2026 14:47limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 11:57Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 11:57012,454,8981,357,0001,013,00020,480No answer to stdout. Died or killed?
2Apr 16, 2026 14:474,286146,017,499123,286,0001,002,0002,293,760
3Apr 16, 2026 14:474,287150,767,756123,314,0001,002,0002,293,760
4Apr 16, 2026 14:474,289146,114,938124,374,00002,289,664
5Apr 16, 2026 14:474,290151,179,880122,394,0002,006,0002,293,760
6Apr 16, 2026 14:474,292154,184,940123,466,0001,003,0002,342,912
7Apr 16, 2026 14:474,293151,128,987123,506,0001,004,0002,293,760
8Apr 16, 2026 14:474,295147,580,938123,543,0001,004,0002,473,984
9Apr 16, 2026 14:474,295154,022,350124,549,00002,351,104
10Apr 16, 2026 14:474,300152,792,184122,707,0001,995,0002,293,760