Better code for problem D: https://atcoder.jp/contests/abc182/su... All the problems that I have discussed, their solution links: A:https://atcoder.jp/contests/abc182/su... B:https://atcoder.jp/contests/abc182/su... C:https://atcoder.jp/contests/abc182/su... D:https://atcoder.jp/contests/abc182/su... Please share the video with all your friends and subscribe to the channel. Thanks. Love babbar playlist: • 450 questions DSA sheet #Atcoder #cp #coding #c++