Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

Is using pre-written code snippets/templates considered cheating?

Revision en1, by chikiak49, 2026-02-02 17:27:20

Hi everyone,

Apologies if this has been answered elsewhere, but I couldn't find a definitive answer.

I want to know if creating my own code snippets for Data Structures (DSU, Trie, etc.) or Common Algorithms (KMP, Kruskal, etc.) and using them during a contest is against the rules.

If it is allowed, should I upload them to a public GitHub repository to establish "ownership"? I am worried about my solution being flagged by the plagiarism detector if the code looks similar to other submissions or standard implementations.

Thanks in advance!

Tags rules

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English chikiak49 2026-02-02 17:27:20 621 Initial revision (published)