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 12:20highload-churnerhighload-churnerScore: 3,434Success
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 12:213,432108,834,36199,543,00002,117,632
2Oct 19, 2026 12:213,433108,933,22099,570,00002,117,632
3Oct 19, 2026 12:213,433108,924,18499,585,00002,117,632
4Oct 19, 2026 12:213,434108,952,12999,589,00002,117,632
5Oct 19, 2026 12:213,434109,035,99999,613,00002,117,632
6Oct 19, 2026 12:213,435109,052,60199,643,00002,117,632
7Oct 19, 2026 12:213,436108,894,76599,651,00002,117,632
8Oct 19, 2026 12:213,437108,993,65099,676,00002,117,632
9Oct 19, 2026 12:213,438109,080,56399,725,00002,117,632