1. Is it allowed to use references and snippets in codeforces official rounds ?
Most of my friends uses references in the contests , so I was wondering if it's allowed to use a code that I wrote before such like segment tree implementation , or it's considered as cheating ?
2. Will using snippets affect on my performance in olympiads and other contests ?
I'm practicing for IOI and ICPC , and I'm afraid that using snippets will make it difficult for me to implement those codes which I used to use snippets for . So will that really affect my performance in olympiads if I used it well ?
Guide me please.. And Thank you








Auto comment: topic has been updated by UnDefined__Behavior (previous revision, new revision, compare).
Auto comment: topic has been updated by UnDefined__Behavior (previous revision, new revision, compare).
np , go ahead and goodluck my </3
Anything that happens before the round is allowed given sufficient proof. Also consult the AI rules. Using external assistance e.g. AI/other resources (created in the contest period) in-contest is not allowed.
It's Allowed. But you can't use AI (I am not sure if you can ask for segment tree code from AI; I never did. But surely you can't ask to solve a problem or ask for a hint. Codes that are written before the contest (like in GFG, Programiz, etc.) are allowed.
This opinion can vary from person to person. If someone is practicing for ICPC then I think it's ok because ICPC allows reference sheets with 25 pages. But there is no reference sheet or template in IOI, so it's better to be good at implementing famous data structures and algorithms fast enough. And as Codeforces rating doesn't matter that much in life, I think it's better to not use a template for an IOI contestant.
Thank you sir you helped me a lot , And of course I will not use Ai even for some algorithm implementations .
You are allowed to keep any kind of already available code, if not keep it in your github
As long as the code was written before the contest began you should be good. Though do not use AI for it.
For ICPC you may take references with you to the contest so copying from snippets should be part of your practice. Though for some contests there might be a limit on how many sheets you may take so you would have to limit it to the most important snippets. Check your contest's rules for how many sheets you may bring in, afaik for ACPC it's unlimited but for ICPC it's 25 sheets (?). For IOI you are not allowed to bring any outside materials to the contest so I would suggest avoiding it.