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 13:13marko1597marko1597Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 17:06C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 17:06021,635,23302,958,00024,576No answer to stdout. Died or killed?
2Aug 14, 2026 13:142,69388,060,31074,990,0003,113,0002,113,536
3Aug 14, 2026 13:142,69690,263,05475,057,0003,146,0002,113,536
4Aug 14, 2026 13:142,69788,499,35775,112,0003,129,0002,113,536
5Aug 14, 2026 13:142,69888,347,60975,098,0003,159,0002,113,536
6Aug 14, 2026 13:142,69888,988,01374,971,0003,297,0002,113,536
7Aug 14, 2026 13:142,69889,016,64775,027,0003,228,0002,113,536
8Aug 14, 2026 13:142,69889,025,57775,116,0003,137,0002,113,536
9Aug 14, 2026 13:142,69888,305,94775,098,0003,148,0002,113,536
10Aug 14, 2026 13:142,69989,034,07675,113,0003,159,0002,113,536