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 9, 2026 23:55highload-churnerhighload-churnerScore: 6,678Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2026 01:346,675202,475,855191,121,0002,457,00024,576
2Oct 10, 2026 01:346,677202,619,280191,146,0002,497,00024,576
3Oct 10, 2026 01:346,678202,707,585191,195,0002,481,00024,576
4Oct 10, 2026 01:346,678202,685,946191,176,0002,496,00024,576
5Oct 10, 2026 01:346,678202,754,668191,229,0002,454,00024,576
6Oct 10, 2026 01:346,678202,741,929191,202,0002,468,00024,576
7Oct 10, 2026 01:346,679202,720,982191,247,0002,472,00024,576
8Oct 10, 2026 01:346,679202,681,209191,183,0002,513,00024,576
9Oct 10, 2026 01:346,679202,738,615191,225,0002,475,00024,576