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 listApr 21, 2026 10:04Charles CabergsCharles CabergsScore: 4,344Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 10:044,342155,616,999122,942,0002,998,0002,506,752
2Apr 21, 2026 10:044,342153,619,926122,920,0002,998,0002,494,464
3Apr 21, 2026 10:044,343152,812,879123,950,0001,999,0002,260,992
4Apr 21, 2026 10:044,343151,703,933122,960,0002,999,0002,510,848
5Apr 21, 2026 10:044,344153,622,546123,004,0003,000,0002,281,472
6Apr 21, 2026 10:044,345152,639,164123,016,0003,000,0002,490,368
7Apr 21, 2026 10:044,345156,935,010123,013,0003,000,0002,494,464
8Apr 21, 2026 10:044,347151,596,469123,068,0003,001,0002,260,992
9Apr 21, 2026 10:044,349158,789,572123,126,0003,003,0002,494,464