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 16, 2026 22:52Tomislav TunkovicTomislav TunkovicError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 16:25C#_user66.85CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 16:25011,938,15202,208,00024,576No answer to stdout. Died or killed?
2Aug 17, 2026 00:012,47781,666,00969,971,0001,863,00024,576
3Aug 17, 2026 00:012,47781,659,84969,970,0001,866,00024,576
4Aug 17, 2026 00:012,47781,902,36369,971,0001,864,00024,576
5Aug 17, 2026 00:012,47881,874,17270,007,0001,858,00024,576
6Aug 17, 2026 00:012,47883,058,32070,008,0001,874,00024,576
7Aug 17, 2026 00:012,47882,487,36769,990,0001,884,00024,576
8Aug 17, 2026 00:012,47981,728,47070,031,0001,866,00024,576
9Aug 17, 2026 00:012,47981,765,53270,022,0001,875,00024,576
10Aug 17, 2026 00:012,48081,832,33170,055,0001,875,00024,576