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 09:49A_ShamanA_ShamanScore: 5,762Success
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 09:495,744176,188,454143,291,00023,312,0002,113,536
2Jun 20, 2026 09:495,747175,775,989143,387,00023,304,0002,113,536
3Jun 20, 2026 09:495,756176,068,975143,283,00023,650,0002,113,536
4Jun 20, 2026 09:495,759176,110,672143,256,00023,764,0002,113,536
5Jun 20, 2026 09:495,762176,133,550143,598,00023,514,0002,113,536
6Jun 20, 2026 09:495,765176,224,723143,394,00023,816,0002,113,536
7Jun 20, 2026 09:495,771176,440,671143,665,00023,705,0002,113,536
8Jun 20, 2026 09:495,772176,568,733143,328,00024,064,0002,113,536
9Jun 20, 2026 09:495,778176,695,976143,758,00023,823,0002,113,536