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:29TudyMTudyMError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 11, 2026 06:17Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 11, 2026 06:18030,030,108,76020,221,145,0004,078,923,000268,046,336Killed by timeout
2May 3, 2026 20:304,468148,816,314129,591,00002,371,584
3May 3, 2026 20:304,469146,084,949129,605,00002,375,680
4May 3, 2026 20:304,472148,224,193129,699,00002,363,392
5May 3, 2026 20:304,474147,723,190128,718,0001,030,0002,375,680
6May 3, 2026 20:304,475147,185,785129,780,00002,367,488
7May 3, 2026 20:304,476147,366,507128,790,0001,025,0002,379,776
8May 3, 2026 20:304,477145,537,265128,815,0001,044,0002,371,584
9May 3, 2026 20:304,478146,455,376128,829,0001,051,0002,367,488
10May 3, 2026 20:304,478146,822,994128,824,0001,044,0002,375,680