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 listJun 13, 2026 06:21Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 03:33Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 04:56023,084,64814,658,000016,384No answer to stdout. Died or killed?
2Jun 13, 2026 06:222,96793,687,05486,062,00002,113,536
3Jun 13, 2026 06:222,96993,651,47486,122,00002,113,536
4Jun 13, 2026 06:222,96993,595,32386,124,00002,113,536
5Jun 13, 2026 06:222,97193,785,32586,183,00002,113,536
6Jun 13, 2026 06:222,97193,666,22086,187,00002,113,536
7Jun 13, 2026 06:222,97293,692,55986,197,00002,113,536
8Jun 13, 2026 06:222,97293,892,88586,213,00002,113,536
9Jun 13, 2026 06:222,97393,739,51586,225,00002,113,536
10Jun 13, 2026 06:222,97393,745,04086,226,00002,113,536