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 21, 2026 13:33A_ShamanA_ShamanScore: 10,138Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 13:3510,128303,374,203270,232,00023,484,0002,113,536
2Jun 21, 2026 13:3510,129303,388,334270,109,00023,659,0002,113,536
3Jun 21, 2026 13:3510,132305,024,446270,188,00023,643,0002,117,632
4Jun 21, 2026 13:3510,135303,161,236269,981,00023,943,0002,117,632
5Jun 21, 2026 13:3510,138303,654,834269,909,00024,098,0002,113,536
6Jun 21, 2026 13:3510,143303,891,181270,344,00023,825,0002,117,632
7Jun 21, 2026 13:3510,145303,975,431270,136,00024,094,0002,117,632
8Jun 21, 2026 13:3510,154303,671,604270,612,00023,866,0002,117,632
9Jun 21, 2026 13:3510,160303,883,230270,944,00023,718,0002,117,632