I would like to submit for general consideration a somewhat alternative formulationsformulation (also tested in practice), both for (suspected) homework and contest question, along the following lines.
This question looks like/is presented like a homework question/contextcontest problem/excerciceexercise. Please note that this site is not intended for such questions, but only for research-level questionquestions. If your question should arise in a research context, please, provide this context.
Those that feeelfeel like it could add another sentence either pointing to other sites or general advice like better trying it by oneself for the case it actually should be a homework question/contextcontest problem/excerciceexercise.
This formulation is a bit longer but in mind it has the advantage that it leaves open the possibility of an error in judgement/a misunderstanding and thus in the (rare) cases where a legitimate question gets it it might be less of a problem. And, for the other cases it also can have the advantage that OP has a harder time to start some debate, they were asked for something specific if they cannnotcannot provide it then what to say.