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 15, 2026 19:09M-RochatM-RochatScore: 6,129Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 15, 2026 19:096,118186,203,981176,254,0001,183,0002,113,536
2May 15, 2026 19:096,120186,199,163176,321,0001,172,0002,113,536
3May 15, 2026 19:096,124186,367,163176,439,0001,158,0002,113,536
4May 15, 2026 19:096,125189,240,964176,377,0001,270,0002,113,536
5May 15, 2026 19:096,129188,711,552176,765,0001,003,0002,113,536
6May 15, 2026 19:096,129186,369,116176,518,0001,234,0002,113,536
7May 15, 2026 19:096,129186,649,367176,742,0001,003,0002,113,536
8May 15, 2026 19:096,131186,509,910176,564,0001,254,0002,113,536
9May 15, 2026 19:096,136186,614,551176,731,0001,214,0002,113,536