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 17:12A_ShamanA_ShamanScore: 8,913Success
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 17:138,888267,396,297240,983,00016,770,0002,113,536
2Jun 26, 2026 17:138,904267,950,381241,106,00017,113,0002,113,536
3Jun 26, 2026 17:138,906268,031,886241,350,00016,936,0002,113,536
4Jun 26, 2026 17:138,909268,107,755241,249,00017,133,0002,113,536
5Jun 26, 2026 17:138,913268,707,469241,484,00016,998,0002,113,536
6Jun 26, 2026 17:138,918268,358,825241,369,00017,268,0002,113,536
7Jun 26, 2026 17:138,927268,646,567241,565,00017,330,0002,113,536
8Jun 26, 2026 17:138,931268,266,620241,552,00017,452,0002,113,536
9Jun 26, 2026 17:138,932268,746,393241,563,00017,473,0002,113,536