REMOSET - Editorial

Thank you soo much! I just changed int a, int b and int p in the func defintion to long long a,b and p. It worked!
This isnt fair mahn!!! I found this sol out at like 8 45…my ranking wudve been soo much better… it hurts sob: