First time here? Check out the FAQ!
answered 13 years ago
Thanks, I thought doing it this way might be really slow but after some testing it appears that even with large inputs it doesn't take long to calculate.