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 listMay 3, 2026 20:35TudyMTudyMScore: 4,414Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 20:374,406143,649,537126,758,0001,041,0002,371,584
2May 3, 2026 20:374,412145,573,883126,928,0001,042,0002,383,872
3May 3, 2026 20:374,413145,765,675126,961,0001,044,0002,367,488
4May 3, 2026 20:374,414146,085,311126,971,0001,038,0002,371,584
5May 3, 2026 20:374,414147,114,106126,949,0001,067,0002,371,584
6May 3, 2026 20:374,414146,033,083126,953,0001,063,0002,371,584
7May 3, 2026 20:374,424142,646,690127,249,0001,060,0002,371,584
8May 3, 2026 20:374,424145,242,106127,266,0001,052,0002,379,776
9May 3, 2026 20:374,424145,329,674127,267,0001,047,0002,363,392