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 30, 2026 12:04Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 12:53Tomislav Tunkovic38.38CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 12:57018,739,0498,823,000016,384No answer to stdout. Died or killed?
2Apr 30, 2026 12:043,075107,256,04688,188,0001,002,0002,355,200
3Apr 30, 2026 12:043,077106,024,40588,244,0001,002,0002,351,104
4Apr 30, 2026 12:043,077104,769,52188,233,0001,002,0002,355,200
5Apr 30, 2026 12:043,077104,813,51788,232,0001,002,0002,351,104
6Apr 30, 2026 12:043,077105,378,43888,242,0001,002,0002,363,392
7Apr 30, 2026 12:043,078107,534,23788,280,0001,003,0002,347,008
8Apr 30, 2026 12:043,078103,207,88888,277,0001,003,0002,318,336
9Apr 30, 2026 12:043,078101,613,99288,266,0001,003,0002,351,104
10Apr 30, 2026 12:043,078106,196,99188,281,0001,003,0002,355,200