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 14, 2026 23:15Tomislav TunkovicTomislav TunkovicError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 16:23C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 16:23010,979,67701,796,00016,384No answer to stdout. Died or killed?
2Aug 14, 2026 23:162,43779,092,48367,980,0002,699,0002,113,536
3Aug 14, 2026 23:162,43879,485,20568,008,0002,713,0002,113,536
4Aug 14, 2026 23:162,43979,151,32568,021,0002,721,0002,113,536
5Aug 14, 2026 23:162,43979,150,17368,055,0002,686,0002,113,536
6Aug 14, 2026 23:162,43979,190,56468,067,0002,691,0002,113,536
7Aug 14, 2026 23:162,44078,946,79468,058,0002,706,0002,113,536
8Aug 14, 2026 23:162,44179,008,79168,070,0002,747,0002,113,536
9Aug 14, 2026 23:162,44379,346,95668,128,0002,740,0002,113,536
10Aug 14, 2026 23:162,44479,377,18868,039,0002,865,0002,113,536