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 06:36Josu San MartinJosu San MartinScore: 5,174Success
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,171182,588,714147,952,0001,999,0002,469,888
2Jan 2, 2026 15:215,171177,593,841146,953,0002,999,0002,293,760
3Jan 2, 2026 06:365,174182,306,213148,059,0002,000,0002,293,760
4Jan 2, 2026 15:215,174177,485,916147,043,0003,000,0002,293,760
5Jan 2, 2026 15:215,176178,876,516149,093,0001,000,0002,293,760
6Jan 2, 2026 06:365,183171,926,951147,306,0003,006,0002,469,888