Hello (My English is not that good so don't mind)
You may sometimes have faced the adverse affects of cheating on CP platforms, you give your best and get AC with 2-3 WA and some cheaters just copying the code from some random YouTube/telegrams channels, batchmate's code, etc. and just changing a few lines of code (changing languages too in some legendary cases XD) and your rank getting pushed form 2000 to more than 5000. What is the motive of these cheaters-- Most of them are copying codes to add stars to their CV hoping that it may help them. and some may enjoy stealing some ratings from others.
So what is the solution. The plagiarism detector are not that advanced and they can't be too blunt also (lets say their was a standard question which has a straight forward implementation of Dijkstra, you can't actually have a thousand way to solve it, i.e. their will be too much similarities in codes of even without cheating) and that's where these cheaters get a chance. So the best solution is to ignore these fools. Don't feel bad about rating losses due to such cheaters, Its your own rating and you have earned it and you have the ability to earn it back and even go higher. Its better to learn some new stuff or even just see others solutions to learn new methods to solve, than to complain about cheating or searching for plagiarized solutions of someone. And for those who will think I am supporting cheaters, I HATE THESE CHEATERS. But we can't do anything. We can just hope for more advanced plagiarism detectors.