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:42Tomislav 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,861,75843,097,0002,443,0002,117,632line 5: expected -10 got 0
2Sep 9, 2026 08:20054,792,24543,120,0002,453,0002,117,632line 5: expected -10 got 0
3Sep 9, 2026 08:20054,745,33243,030,0002,449,0002,117,632line 5: expected -10 got 0
4Aug 13, 2026 15:423,205101,471,18790,249,0002,713,0002,117,632
5Aug 13, 2026 15:423,207101,450,03990,308,0002,710,0002,117,632
6Aug 13, 2026 15:423,210101,551,17190,297,0002,805,0002,117,632
7Aug 13, 2026 15:423,210101,640,42290,289,0002,820,0002,117,632
8Aug 13, 2026 15:423,211101,574,08190,327,0002,814,0002,117,632
9Aug 13, 2026 15:423,211101,467,20690,298,0002,823,0002,117,632
10Aug 13, 2026 15:423,212101,644,20090,329,0002,832,0002,117,632
11Aug 13, 2026 15:423,213101,629,61590,348,0002,841,0002,117,632
12Aug 13, 2026 15:423,214101,649,46190,380,0002,831,0002,117,632