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:34Tomislav 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,007,96443,000,0002,438,0002,117,632line 5: expected -10 got 0
2Sep 9, 2026 08:20054,032,54843,023,0002,432,0002,117,632line 5: expected -10 got 0
3Sep 9, 2026 08:20054,033,00142,991,0002,447,0002,117,632line 5: expected -10 got 0
4Aug 13, 2026 15:373,243102,576,22291,255,0002,820,0002,117,632
5Aug 13, 2026 15:373,245102,515,86591,303,0002,827,0002,117,632
6Aug 13, 2026 15:373,245102,619,31091,280,0002,829,0002,117,632
7Aug 13, 2026 15:373,246102,599,60891,326,0002,832,0002,117,632
8Aug 13, 2026 15:373,246102,639,89091,325,0002,823,0002,117,632
9Aug 13, 2026 15:373,246103,310,63491,339,0002,815,0002,117,632
10Aug 13, 2026 15:373,247102,643,16791,341,0002,830,0002,117,632
11Aug 13, 2026 15:373,248102,548,42891,323,0002,878,0002,117,632
12Aug 13, 2026 15:373,251102,817,17591,384,0002,921,0002,117,632