Doesn't work. A friend has been a teacher, at a not cheap private school, for going on 25+ years now. What she sees at almost every level is an avalanche of LLM "cheating". Even when there is extreme upfront emphasis on "this course is to help you learn, not just do whatever to find the 'correct' answers as quickly and easily as possible" the majority of students do the latter. She guesses that at least half are pasting in answers without even reviewing them. There are of course the few students that are there out of passion for learning, but those are the exceptions. This doesn't just apply to CS.
There are cultural and political ramifications that make enforcing this difficult (read rich parents that want those good grades). So she struggles along trying to swim against the current of LLM answers.
Quoting her directly, from about a month ago, "If they cannot type something into their phones and get an instant answer they're not interested."