This is a code template for Modular, which I copied from this. I made some changes to the code and to check, I ran this on B. Divide and Sum and it failed.
Here is my code.
Please highlight my mistake and also it will be nice if you can tell, how to better my template. Thanks.
Plus there can be counter-test on fact that $$$998244353 \lt 10^9$$$: your calculations can print number between them.
now, i understand . This was a very stupid thing to do.