is GFG(geeksforgeeks) allowed in contests?
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3659 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3312 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 154 |
| 2 | nik_exists | 151 |
| 3 | maspy | 149 |
| 4 | AmShZ | 146 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | BledDest | 136 |
| 8 | adamant | 135 |
| 9 | maroonrk | 133 |
| 10 | cry | 130 |
is GFG(geeksforgeeks) allowed in contests?
| Name |
|---|



yes
geekforgeeks, a website with CP templates
isnt copying templates banned in cf contests? if not, then like lets say i dont have template of sieve with me so i can just google it up and find a template for it without an issue? also, lets say i ask gpt to make a template to give p/q mod a prime is that also banned in a contest?
it's not, as long as the codes are written before the contest started, you can use it without worrying too much
The comment by beaaaan already said this, but just to make this 100% clear:
You CANNOT generate a template for ANYTHING with GPT during the contest.
You CAN generate a template with GPT BEFORE the contest starts.
Copying Sieve from online is fine.
greensforgreens
Yes absolutely.
But you should change the code if you are directly copy and pasting, here is a report where the user directly copy pastes gfg code, and here the gfg code directly gave the answer,didn't need to code anything more. Two person used the same code and one got skipped.
whilst its allowed to copy past from gfg , gfg has got so many wrong codes and complexities alongside wrong greedy algorithms so watch it when copying from it
Fun fact: a lot of time ago I submitted something from GFG and got Time limit exceeded on test ~ 50, because that algorithm was $$$O(n^2)$$$ instead of $$$O(n)$$$ as stated on GFG.
the algorithm to find number of inversions in an array using priority queue is also n^2logn although they advertise it as nlogn
Recently banned gfg form my search results cause of this. They claim pow(a,b)%c has log(b) runtime in python completely disregarding the runtime of multiplication with bigint. I'm kinda surprised they end up at the correct result pow(a,b,c) in the end.
UDP: they only arrive at pow(a,b,c) cause they claim the modulo operation is slow...
I was also curious about this. I got AC on 2102D - Перестановка квартетов in previous contest by copying inversion count template from GFG.
I wasn’t aware of a way to calculate inversions in an array in O(nlogn), so I googled it and found a GFG article using merge sort. I guessed it's within the rules though It feels a bit like cheating to copy something I didn’t previously know.
.
I still recommend either have your own ready to use template or not use them at all.
I wouldn't recommend GFG because when templates are difficult, many people choose to copy from sites like GFG, which leads to confusion regarding whether you cheated or not due to similar submission.
Edit: I removed the last line because Mindeveloped already said what I was thinking.