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 listOct 19, 2026 01:13highload-churnerhighload-churnerScore: 5,021Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 19, 2026 01:145,012154,560,410145,369,00002,117,632stderr
2Oct 19, 2026 01:145,014156,935,753145,425,00002,117,632stderr
3Oct 19, 2026 01:145,019154,757,583145,579,00002,117,632stderr
4Oct 19, 2026 01:145,021154,990,568145,613,00002,117,632stderr
5Oct 19, 2026 01:145,021155,162,533145,626,00002,117,632stderr
6Oct 19, 2026 01:145,024154,859,748145,696,00002,117,632stderr
7Oct 19, 2026 01:145,033155,383,955145,974,00002,117,632stderr
8Oct 19, 2026 01:145,044155,493,014146,285,00002,117,632stderr
9Oct 19, 2026 01:145,072156,341,135147,108,00002,117,632stderr