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 listJan 3, 2026 04:59Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:29Tomislav Tunkovic13.61CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:31072,479,29748,664,00012,767,00045,056Exit with code 2: panic: runtime error: integer divide by zero goroutine 1 [running]: main.main() /src/main.go:228 +0xb57stderr
2Jan 3, 2026 04:595,373177,329,367154,808,000998,0002,347,008
3Jan 3, 2026 04:595,374184,847,151153,838,0001,997,0002,330,624
4Jan 3, 2026 04:595,392185,402,041154,365,0002,004,0002,367,488