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 26, 2026 06:16Victor MerckléVictor MerckléScore: 3,705Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 06:173,662113,984,109106,216,00002,138,112
2Jun 26, 2026 06:173,666113,909,625106,333,00002,166,784
3Jun 26, 2026 06:173,703114,985,777107,406,00002,146,304
4Jun 26, 2026 06:173,703115,005,770107,402,00002,146,304
5Jun 26, 2026 06:173,705115,053,398107,459,00002,146,304
6Jun 26, 2026 06:173,706115,250,670107,474,00002,146,304
7Jun 26, 2026 06:173,706115,164,021107,502,00002,174,976
8Jun 26, 2026 06:173,707115,373,917107,514,00002,146,304
9Jun 26, 2026 06:173,710115,181,242107,612,00002,174,976