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 listAug 13, 2026 15:07Tomislav TunkovicTomislav TunkovicError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:19C#_user24.18CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:20055,903,12043,803,0002,315,0002,117,632line 5: expected -10 got 0
2Sep 9, 2026 08:20054,873,78644,004,0002,417,0002,117,632line 5: expected -10 got 0
3Sep 9, 2026 08:20054,788,37443,969,0002,393,0002,117,632line 5: expected -10 got 0
4Aug 13, 2026 15:143,261102,953,29291,875,0002,707,0002,117,632
5Aug 13, 2026 15:143,264103,070,51791,956,0002,706,0002,117,632
6Aug 13, 2026 15:143,264103,781,17591,943,0002,727,0002,117,632
7Aug 13, 2026 15:143,266103,065,62891,983,0002,737,0002,117,632
8Aug 13, 2026 15:143,266103,066,94491,985,0002,734,0002,117,632
9Aug 13, 2026 15:143,266103,017,39992,014,0002,721,0002,117,632
10Aug 13, 2026 15:143,267103,179,74892,018,0002,725,0002,117,632
11Aug 13, 2026 15:143,270103,170,91492,002,0002,842,0002,117,632
12Aug 13, 2026 15:143,277103,444,64192,259,0002,802,0002,117,632