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:58TudyMTudyMScore: 4,545Success
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:594,540148,118,148131,687,00002,375,680
2May 3, 2026 20:594,543148,998,895131,772,00002,359,296
3May 3, 2026 20:594,543149,511,178131,752,00002,375,680
4May 3, 2026 20:594,544147,190,043130,760,0001,035,0002,363,392
5May 3, 2026 20:594,545147,249,403130,757,0001,056,0002,375,680
6May 3, 2026 20:594,545147,382,705130,794,0001,037,0002,375,680
7May 3, 2026 20:594,546148,153,073130,800,0001,043,0002,379,776
8May 3, 2026 20:594,547147,873,429130,830,0001,050,0002,367,488
9May 3, 2026 20:594,548150,501,217130,862,0001,036,0002,367,488