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 22, 2026 10:56A_ShamanA_ShamanScore: 8,171Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 10:588,164245,951,314230,012,0006,761,0002,113,536
2Jun 22, 2026 10:588,165245,980,407230,081,0006,704,0002,113,536
3Jun 22, 2026 10:588,170246,172,416229,933,0007,024,0002,113,536
4Jun 22, 2026 10:588,171246,159,867230,179,0006,784,0002,113,536
5Jun 22, 2026 10:588,171246,806,458229,913,0007,066,0002,113,536
6Jun 22, 2026 10:588,173246,275,239229,998,0007,030,0002,113,536
7Jun 22, 2026 10:588,174246,759,384230,227,0006,834,0002,113,536
8Jun 22, 2026 10:588,174246,795,726230,335,0006,722,0002,113,536
9Jun 22, 2026 10:588,175246,703,250230,027,0007,056,0002,113,536