You will know. The jam is supposed to be a challenge, and if you cheat at that, you're only cheating yourself imo.
In essence, they'll probably never figure it out unless it's blatantly obvious code has been ripped elsewhere. But it's ultimately up to how much respect and discipline you have for taking part in a challenge.