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 13, 2026 20:12Karthik ReddyKarthik ReddyScore: 1,792Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 13, 2026 20:171,79161,523,93651,957,000020,480
2Oct 13, 2026 20:171,79160,914,86751,955,000020,480
3Oct 13, 2026 20:171,79260,967,65851,990,000020,480
4Oct 13, 2026 20:171,79260,920,85651,985,000020,480
5Oct 13, 2026 20:171,79261,014,21251,981,000020,480
6Oct 13, 2026 20:171,79261,128,55851,972,000020,480
7Oct 13, 2026 20:171,79361,565,00452,025,000020,480
8Oct 13, 2026 20:171,79661,735,96152,105,000020,480
9Oct 13, 2026 20:171,80062,674,92052,208,000020,480