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 listJun 20, 2026 09:28A_ShamanA_ShamanError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:33Haha Expert18.30CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:33061,489,97835,887,00015,089,0002,113,536line 5: expected -10 got 0
2Sep 9, 2026 08:33060,576,46735,945,00014,651,0002,113,536line 5: expected -10 got 0
3Sep 9, 2026 08:33061,575,43436,110,00015,345,0002,113,536line 5: expected -10 got 0
4Jun 20, 2026 09:285,587171,056,758139,421,00022,613,0002,113,536
5Jun 20, 2026 09:285,591171,431,550139,425,00022,734,0002,113,536
6Jun 20, 2026 09:285,596171,300,132139,443,00022,865,0002,113,536
7Jun 20, 2026 09:285,600171,435,736139,451,00022,953,0002,113,536
8Jun 20, 2026 09:285,606171,618,805139,422,00023,158,0002,113,536
9Jun 20, 2026 09:285,613172,131,042139,407,00023,378,0002,113,536
10Jun 20, 2026 09:285,622172,143,269139,354,00023,694,0002,113,536
11Jun 20, 2026 09:285,626172,144,489139,534,00023,634,0002,113,536
12Jun 20, 2026 09:285,637172,553,132139,350,00024,129,0002,113,536