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 listApr 28, 2026 06:50Victor MerckléVictor MerckléScore: 7,526Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 06:517,438238,773,229212,714,0002,995,0002,359,296
2Apr 28, 2026 06:517,442233,634,913212,849,0002,997,0002,547,712
3Apr 28, 2026 06:517,477235,762,922213,859,0002,998,0002,547,712
4Apr 28, 2026 06:517,481236,884,210213,950,0002,999,0002,551,808
5Apr 28, 2026 06:517,526233,438,573217,255,0001,001,0002,551,808
6Apr 28, 2026 06:517,541234,067,899215,703,0002,995,0002,342,912
7Apr 28, 2026 06:517,576239,949,570216,728,0002,996,0002,547,712
8Apr 28, 2026 06:517,577238,287,383216,756,0002,996,0002,342,912
9Apr 28, 2026 06:517,591237,543,380218,144,0002,001,0002,330,624