Shaheer.Old's blog

By Shaheer.Old, 18 months ago, In English

is GFG(geeksforgeeks) allowed in contests?

  • Vote: I like it
  • +10
  • Vote: I do not like it

| Write comment?
»
18 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

yes

what is GFG
  • »
    »
    18 months ago, hide # ^ |
     
    Vote: I like it -20 Vote: I do not like it

    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?

    • »
      »
      »
      18 months ago, hide # ^ |
       
      Vote: I like it +6 Vote: I do not like it

      it's not, as long as the codes are written before the contest started, you can use it without worrying too much

    • »
      »
      »
      18 months ago, hide # ^ |
      ← Rev. 2  
      Vote: I like it +13 Vote: I do not like it

      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.

  • »
    »
    18 months ago, hide # ^ |
     
    Vote: I like it +21 Vote: I do not like it
    what is GFG
»
18 months ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

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.

»
18 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

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

  • »
    »
    18 months ago, hide # ^ |
     
    Vote: I like it +55 Vote: I do not like 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.

    • »
      »
      »
      18 months ago, hide # ^ |
       
      Vote: I like it +13 Vote: I do not like it

      the algorithm to find number of inversions in an array using priority queue is also n^2logn although they advertise it as nlogn

    • »
      »
      »
      18 months ago, hide # ^ |
      ← Rev. 2  
      Vote: I like it +26 Vote: I do not like it

      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...

»
18 months ago, hide # |
← Rev. 4  
Vote: I like it -8 Vote: I do not like it

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.

»
18 months ago, hide # |
← Rev. 2  
Vote: I like it -15 Vote: I do not like it

.

»
18 months ago, hide # |
 
Vote: I like it +17 Vote: I do not like it

I still recommend either have your own ready to use template or not use them at all.

»
18 months ago, hide # |
← Rev. 7  
Vote: I like it 0 Vote: I do not like it

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.