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 listJul 2, 2026 17:14Victor MerckléVictor MerckléScore: 3,033Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 17:143,03095,654,85687,873,00002,117,632stderr
2Jul 2, 2026 17:143,03195,653,53687,916,00002,117,632stderr
3Jul 2, 2026 17:143,03295,890,52387,956,00002,117,632stderr
4Jul 2, 2026 17:143,03295,712,21287,929,00002,117,632stderr
5Jul 2, 2026 17:143,03396,776,87187,976,00002,117,632stderr
6Jul 2, 2026 17:143,03495,770,64988,005,00002,117,632stderr
7Jul 2, 2026 17:143,03496,006,01588,010,00002,117,632stderr
8Jul 2, 2026 17:143,03696,008,47588,056,00002,117,632stderr
9Jul 2, 2026 17:143,03695,789,61688,052,00002,117,632stderr