Lets hire humans as pAIrrots? They see it, they rearrange it, they rename variables and then they "authored" it. What a job- to start for as junior, but if you understand whats happening, you may augment the AIs code by giving "feedback" with enough time.
Free water but not electricity? I'll just hook up a generator to the shower...
These sorts of simplistic loopholes rarely work. Imagine if you could get copyright for the linux kernel by just rearranging it and renaming a few variables.
Ah the infamous "no I wrote it myself" submission in university coursework. Usually gets you a free visit to the guidance counsel and a bonus free mark (on your three strikes and you are out plagiarism form).