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 listFeb 26, 2026 03:32Josu San MartinJosu San MartinScore: 3,890Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 26, 2026 03:323,885144,356,829111,665,0001,005,0002,535,424
2Feb 26, 2026 03:303,888134,695,934111,757,000997,0002,375,680
3Feb 26, 2026 03:303,890139,644,730110,824,0001,996,0002,367,488
4Feb 26, 2026 03:303,890137,844,794110,828,0001,996,0002,371,584
5Feb 26, 2026 03:323,890145,300,710110,825,0001,996,0002,367,488
6Feb 26, 2026 03:323,890139,174,828112,824,00002,281,472