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 5, 2026 18:10Victor MerckléVictor MerckléScore: 3,172Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 5, 2026 18:103,168101,077,07090,771,0001,114,0002,113,536
2Jun 5, 2026 18:103,169101,284,83290,775,0001,128,0002,113,536
3Jun 5, 2026 18:103,170101,203,71590,801,0001,151,0002,113,536
4Jun 5, 2026 18:103,170101,299,44290,811,0001,119,0002,113,536
5Jun 5, 2026 18:103,172101,178,23590,973,0001,021,0002,113,536
6Jun 5, 2026 18:103,173101,361,28690,992,0001,036,0002,113,536
7Jun 5, 2026 18:103,173101,342,67290,999,0001,035,0002,113,536
8Jun 5, 2026 18:103,174104,007,37990,989,0001,084,0002,113,536
9Jun 5, 2026 18:103,175101,426,20391,005,0001,088,0002,113,536