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 listMay 3, 2026 20:25TudyMTudyMError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 11, 2026 06:16Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 11, 2026 06:16013,821,1342,052,0001,267,00020,480No answer to stdout. Died or killed?
2May 3, 2026 20:254,636150,644,319134,461,00002,375,680
3May 3, 2026 20:254,638151,749,638134,504,00002,371,584
4May 3, 2026 20:254,639153,560,091134,535,00002,371,584
5May 3, 2026 20:254,639152,664,793134,556,00002,375,680
6May 3, 2026 20:254,640151,827,881134,573,00002,375,680
7May 3, 2026 20:254,642152,916,408133,584,0001,042,0002,375,680
8May 3, 2026 20:254,642149,745,960134,632,00002,363,392
9May 3, 2026 20:254,644150,258,986133,633,0001,050,0002,375,680
10May 3, 2026 20:254,654154,179,437133,918,0001,060,0002,371,584