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:20A_ShamanA_ShamanScore: 7,543Success
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:227,512227,596,388194,780,00023,078,0002,117,632
2Jun 21, 2026 13:227,524227,523,239194,353,00023,848,0002,117,632
3Jun 21, 2026 13:227,527227,641,960194,592,00023,699,0002,117,632
4Jun 21, 2026 13:227,537227,866,540194,740,00023,851,0002,117,632
5Jun 21, 2026 13:227,543228,585,235194,536,00024,227,0002,117,632
6Jun 21, 2026 13:227,543228,557,840195,149,00023,626,0002,117,632
7Jun 21, 2026 13:227,547228,270,349194,609,00024,277,0002,117,632
8Jun 21, 2026 13:227,554228,409,040195,033,00024,050,0002,113,536
9Jun 21, 2026 13:227,565228,606,737195,069,00024,317,0002,117,632