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:44Tomislav TunkovicTomislav TunkovicError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:20C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:20054,408,70843,258,0002,434,0002,117,632line 5: expected -10 got 0
2Sep 9, 2026 08:20054,946,42843,246,0002,442,0002,117,632line 5: expected -10 got 0
3Sep 9, 2026 08:20054,696,97543,016,0002,444,0002,117,632line 5: expected -10 got 0
4Aug 13, 2026 15:443,208102,582,51890,231,0002,815,0002,117,632
5Aug 13, 2026 15:443,209102,113,03390,281,0002,802,0002,117,632
6Aug 13, 2026 15:443,209102,177,37290,271,0002,810,0002,117,632
7Aug 13, 2026 15:443,209101,575,07690,292,0002,792,0002,117,632
8Aug 13, 2026 15:443,209101,530,27890,261,0002,821,0002,117,632
9Aug 13, 2026 15:443,210101,632,90890,292,0002,819,0002,117,632
10Aug 13, 2026 15:443,211102,255,21690,325,0002,810,0002,117,632
11Aug 13, 2026 15:443,213101,664,14590,359,0002,820,0002,117,632
12Aug 13, 2026 15:443,216101,783,93990,333,0002,951,0002,117,632