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 10:15A_ShamanA_ShamanScore: 5,557Success
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 10:165,539169,654,609137,634,00023,024,0002,113,536
2Jun 20, 2026 10:165,552170,437,208137,776,00023,246,0002,113,536
3Jun 20, 2026 10:165,552170,189,059137,774,00023,237,0002,113,536
4Jun 20, 2026 10:165,555170,186,362137,619,00023,485,0002,113,536
5Jun 20, 2026 10:165,557170,155,534137,701,00023,459,0002,113,536
6Jun 20, 2026 10:165,563170,339,233137,626,00023,701,0002,113,536
7Jun 20, 2026 10:165,566170,454,370137,684,00023,740,0002,113,536
8Jun 20, 2026 10:165,575170,793,628137,618,00024,066,0002,113,536
9Jun 20, 2026 10:165,578170,853,371137,554,00024,232,0002,113,536