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 10, 2026 09:33limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 17:10Haha Expert23.65CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 17:11077,496,00765,483,0001,100,0002,113,536line 0: expected 32767 got 2895577246950434858
2Sep 8, 2026 17:11075,467,73163,440,0001,088,0002,113,536line 0: expected 32767 got 2895577246950434858
3Sep 8, 2026 17:11077,011,30864,481,0001,098,0002,113,536line 0: expected 32767 got 2895577246950434858
4Apr 10, 2026 09:337,599243,079,157219,366,0001,001,0002,293,760
5Apr 10, 2026 09:337,604250,298,218220,513,00002,293,760
6Apr 10, 2026 09:337,607247,012,535219,589,0001,002,0002,293,760
7Apr 10, 2026 09:337,650253,467,596219,858,0001,998,0002,293,760
8Apr 10, 2026 09:337,671245,278,810221,465,0001,002,0002,293,760
9Apr 10, 2026 09:337,675256,672,170221,567,0001,002,0002,351,104
10Apr 10, 2026 09:337,693243,720,978221,101,0002,000,0002,359,296
11Apr 10, 2026 09:337,708251,730,571222,528,000997,0002,285,568
12Apr 10, 2026 09:337,716254,862,900222,773,000998,0002,355,200