As we know, if someone cheated in a contest, using other contestants' codes, his solution will be skipped.
But, Codeforces allows to use code which was published online before the contest.
So my question is that how Codeforces determines if or if not the code was published online before?