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 listJan 2, 2026 15:20Josu San MartinJosu San MartinScore: 5,747Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2026 06:365,745195,470,499164,585,0002,007,0002,461,696
2Jan 2, 2026 06:365,746196,250,464164,614,0002,007,0002,473,984
3Jan 2, 2026 06:365,746194,004,139165,621,0001,003,0002,293,760
4Jan 2, 2026 15:205,747194,028,544164,652,0002,007,0002,289,664
5Jan 2, 2026 15:205,749192,428,434163,717,0002,994,0002,289,664
6Jan 2, 2026 15:205,751195,443,905165,789,000998,0002,293,760