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 listOct 19, 2026 12:16highload-churnerhighload-churnerScore: 1,779Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 19, 2026 12:171,77660,825,12951,522,00002,117,632
2Oct 19, 2026 12:171,77660,839,92251,527,00002,117,632
3Oct 19, 2026 12:171,77660,875,10951,529,00002,117,632
4Oct 19, 2026 12:171,77860,901,37851,572,00002,117,632
5Oct 19, 2026 12:171,77960,983,15751,618,00002,117,632
6Oct 19, 2026 12:171,77960,942,72851,618,00002,117,632
7Oct 19, 2026 12:171,77960,898,90851,600,00002,117,632
8Oct 19, 2026 12:171,78360,954,46351,707,00002,117,632
9Oct 19, 2026 12:171,78561,282,60751,779,00002,117,632