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 20, 2026 11:57M-RochatM-RochatScore: 4,798Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2026 11:574,793148,187,117139,006,00002,113,536
2May 20, 2026 11:574,794148,245,243138,024,0001,018,0002,113,536
3May 20, 2026 11:574,796150,737,406139,107,00002,113,536
4May 20, 2026 11:574,797148,367,682138,109,0001,027,0002,113,536
5May 20, 2026 11:574,798148,386,218138,114,0001,028,0002,113,536
6May 20, 2026 11:574,801148,593,009138,194,0001,042,0002,113,536
7May 20, 2026 11:574,802150,150,021138,263,0001,019,0002,113,536
8May 20, 2026 11:574,802149,028,396138,252,0001,027,0002,113,536
9May 20, 2026 11:574,804150,359,858138,267,0001,053,0002,113,536