Today after the contest, I was seeing other peoples solution and got to know that chatgpt actually solved C & D,
I solved C , using greedy approach (set approach). Didn't solved D. Which was Considerably Hard problem. But I saw , people solved it using chatgpt. I am attaching link.
I was Very Disappointed to see this. But , There is nothing we can do.
I am Attaching chatgpt soln and exactly same soln used under 200 rank person.