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 20, 2026 09:28A_ShamanA_ShamanScore: 5,606Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2026 09:285,587171,056,758139,421,00022,613,0002,113,536
2Jun 20, 2026 09:285,591171,431,550139,425,00022,734,0002,113,536
3Jun 20, 2026 09:285,596171,300,132139,443,00022,865,0002,113,536
4Jun 20, 2026 09:285,600171,435,736139,451,00022,953,0002,113,536
5Jun 20, 2026 09:285,606171,618,805139,422,00023,158,0002,113,536
6Jun 20, 2026 09:285,613172,131,042139,407,00023,378,0002,113,536
7Jun 20, 2026 09:285,622172,143,269139,354,00023,694,0002,113,536
8Jun 20, 2026 09:285,626172,144,489139,534,00023,634,0002,113,536
9Jun 20, 2026 09:285,637172,553,132139,350,00024,129,0002,113,536