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 20, 2026 22:50Charles CabergsCharles CabergsError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:14Tomislav Tunkovic22.76CustomSolution Broken
Sep 8, 2026 16:57Haha Expert22.76CustomSolution Held
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:14034,652,20422,893,0001,021,00016,384No answer to stdout. Died or killed?
2Apr 20, 2026 22:504,815169,666,597137,659,0001,995,0002,494,464
3Apr 20, 2026 22:504,818165,925,182137,750,0001,996,0002,502,656
4Apr 20, 2026 22:504,819169,560,704138,775,000998,0002,494,464
5Apr 20, 2026 22:504,819166,517,678136,773,0002,995,0002,510,848
6Apr 20, 2026 22:504,820168,528,204137,790,0001,996,0002,260,992
7Apr 20, 2026 22:504,820168,684,407136,787,0002,995,0002,502,656
8Apr 20, 2026 22:504,820163,227,391136,804,0002,995,0002,269,184
9Apr 20, 2026 22:504,820164,667,621136,808,0002,995,0002,342,912
10Apr 20, 2026 22:504,829167,660,668137,043,0003,000,0002,281,472