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

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

Challenge History
DateChallengerCostTypeStatus
Sep 11, 2026 06:22Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 11, 2026 06:22012,054,8552,101,00002,117,632line 1: expected 32767 got 7
2Sep 11, 2026 06:22011,975,9621,989,00002,117,632line 1: expected 32767 got 7
3Sep 11, 2026 06:22011,945,1962,001,00002,117,632line 1: expected 32767 got 7
4May 3, 2026 21:204,111136,647,240118,194,0001,047,0002,355,200
5May 3, 2026 21:204,115135,969,929119,344,00002,367,488
6May 3, 2026 21:204,118132,892,114119,433,00002,375,680
7May 3, 2026 21:204,119137,619,184118,418,0001,033,0002,375,680
8May 3, 2026 21:204,121135,880,412118,460,0001,051,0002,363,392
9May 3, 2026 21:204,122134,948,375118,523,0001,038,0002,363,392
10May 3, 2026 21:204,123137,905,076119,586,00002,371,584
11May 3, 2026 21:204,130135,922,903118,738,0001,059,0002,375,680
12May 3, 2026 21:204,165137,753,486119,755,0001,045,0002,367,488