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 17, 2026 13:09Tomislav TunkovicTomislav TunkovicError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 15:54C#_user62.85CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 15:54014,025,9521,312,0002,798,00049,152No answer to stdout. Died or killed?
2Aug 17, 2026 13:242,18371,678,82762,304,0001,016,00028,672
3Aug 17, 2026 13:242,23973,324,60061,395,0003,543,00028,672
4Aug 17, 2026 13:242,23975,163,31662,316,0002,621,00028,672
5Aug 17, 2026 13:242,24073,322,37262,268,0002,706,00028,672
6Aug 17, 2026 13:242,24073,402,47862,283,0002,695,00028,672
7Aug 17, 2026 13:242,24177,026,12862,316,0002,700,00028,672
8Aug 17, 2026 13:242,24174,147,87162,316,0002,687,00028,672
9Aug 17, 2026 13:242,24174,113,59062,320,0002,683,00028,672
10Aug 17, 2026 13:242,24273,471,73862,362,0002,681,00028,672