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 27, 2026 15:53Victor MerckléVictor MerckléScore: 3,115Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 15:543,11498,177,19389,158,0001,154,0002,138,112
2Jun 27, 2026 15:543,114100,688,90989,139,0001,175,0002,138,112
3Jun 27, 2026 15:543,11598,137,82289,167,0001,174,0002,138,112
4Jun 27, 2026 15:543,115100,406,73889,148,0001,195,0002,138,112
5Jun 27, 2026 15:543,115100,958,43689,161,0001,187,0002,138,112
6Jun 27, 2026 15:543,11599,353,47389,158,0001,194,0002,138,112
7Jun 27, 2026 15:543,118100,570,51689,424,0001,011,0002,138,112
8Jun 27, 2026 15:543,11998,307,47989,204,0001,267,0002,138,112
9Jun 27, 2026 15:543,122100,045,72589,551,0001,011,0002,138,112