Well actually the earlier versions of chatgpt were actually very impressive at solving competitive programming problems. Now I think the free version is kinda nerfed. But it is definitely more powerful than you think.