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 listAug 4, 2023 09:26Yurkov AlekseyYurkov AlekseyScore: 8,855Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 4, 2023 09:268,809532,726,128255,473,555027,422,720
2Aug 4, 2023 09:268,810542,872,986255,482,181027,418,624
3Aug 4, 2023 09:268,847539,026,986256,564,174027,430,912
4Aug 4, 2023 09:268,855567,878,443256,787,143027,422,720
5Aug 4, 2023 09:268,864558,288,591257,058,130027,426,816
6Aug 4, 2023 09:268,865547,463,780257,091,576027,418,624