Here, is the detailed solution PROBLEM B PLEASANT PAIRS of CODEFORCES ROUND 728 DIV2, and if you have any doubts, do comment below to let us know and help you.
This Problem basically requires prerequisite knowledge of number theory and observations.
Any suggestions are welcomed and do SUBSCRIBE to my YouTube Channel for the latest updates for solutions as well as explanations.
You can donate to support us:-
UPI :- sunnysaraff11@okicici
Paypal:- paypal.me/CodeWithSunny
Link for the code :-
https://codeforces.com/contest/1541/submission/120611843
Educational Codeforces Round 108 Playlist:-
https://www.youtube.com/playlist?list=PLEvw47Ps6OBDAsLsuC48VV10Pkc6_Alqr
Educational Codeforces Round 107 Solution Playlist:-
https://www.youtube.com/playlist?list=PLEvw47Ps6OBDo2-3vjwzFXvTmraBahthe
Follow me on LinkedIn:-
https://www.linkedin.com/in/sunny-kumar-8798591a0/
Join my Telegram Channel:-
https://t.me/joinchat/TMXVBytmkoVE8dbV