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 13, 2026 06:21Victor MerckléVictor MerckléScore: 2,971Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 13, 2026 06:222,96793,687,05486,062,00002,113,536
2Jun 13, 2026 06:222,96993,651,47486,122,00002,113,536
3Jun 13, 2026 06:222,96993,595,32386,124,00002,113,536
4Jun 13, 2026 06:222,97193,785,32586,183,00002,113,536
5Jun 13, 2026 06:222,97193,666,22086,187,00002,113,536
6Jun 13, 2026 06:222,97293,692,55986,197,00002,113,536
7Jun 13, 2026 06:222,97293,892,88586,213,00002,113,536
8Jun 13, 2026 06:222,97393,739,51586,225,00002,113,536
9Jun 13, 2026 06:222,97393,745,04086,226,00002,113,536