I took part in the Codeforces round yesterday, and just now I received a message saying my code coincides with someone else's. I didn't know the person at all. I solved the problem a lot earlier than him, and I didn't share my code to anyone or anywhere. I think it's just a coincidence because the solution is short and the code is simple. Could you please take a look into this?MikeMirzayanov
Submissions:113994230 114020895
Could you please reply after seeing this post MikeMirzayanov, thanks!
Auto comment: topic has been updated by gyh20 (previous revision, new revision, compare).
I have the same doubt... I got this for 1517B. I guess you need to prove it somewhere but I don't know where to. Expecting for a reply on this.
There's a blog of Mike named Rules on Third Party code ( more or less this was the name of the blog ig ) U have to reply in the comments tagging Mike and showing suitable proof .
Thanks!
Btw, what can I show to prove that I didn't cheat?
I'm absolutely not qualified to make a judgement, just some suggestions here:
register
everywhere, and(c << 3) + (c << 1) + v - '0'
instead of simplyc * 10 + v - '0'
. Nowadays most people can't defeat the the compiler on register allocation, and the multiplication-to-shift reduction is done by the compiler automatically (even at-O0
). It may be relevent to cheating detection or not: I know this kind of outdated idioms is everywhere in Chinese blogs & high schools, but to others this may look like "some code looking strangely similar".Yeah, when I looked at submissions, they looked oddly similar, but then I looked at the profile of authors and both being from China, I did think there must be some common Chinese blogs/resources where using the snippet is a common practice.
Feel for the OP.
Omg, Hi Lohit
Omg, Hi Shahraaz
It's not a "single" blog or resource. Such idioms are originated in the history (when OI was still using something like Borland C or VC6). Then they are passed through websites, and in high schools from seniors to juniors. Unfortunately only a few people really consider if they are still valid today.
It seems the OP's rating is restored. Congratulation to him for he is a GM now! But I still suggest him to remove those outdated idiom, though he is a better contestant than me:).
OP was never in danger in the first place, because his solution had been submitted earlier. Of course, unless the system marked him as a potential offender to watch with special scrutiny in the future contests.
It's actually the other contestant CCCCOrz who got penalized: 114020895.
Will I be able to use my template from the next contest(in my main accnt)?
Coz, it contains many GFG functions and I am pretty sure that those functions are very popular to be used by anyone.
P.S — I don't wanna get those messages again & again.
Do you have any comments in your template disclosing the origin of this code and giving proper credit to GFG?
Please check https://www.geeksforgeeks.org/copyright-information/ and also this answer on quora.
Suppose I have copied the function of GCD from GFG ( https://www.geeksforgeeks.org/c-program-find-gcd-hcf-two-numbers/ ) .
So, What I have to write in comment of the code in order to give proper credit and where do I write that comment part(like at first or last or just above the copied function) ? @MikeMirzayanov
Suggestion: Implementing overwatch mode like in CS:GO or Dota2. Give high contribution or high rated members the ability to cast vote of whether does a solution is plagiarised.
Probably not just high-rated, because some random LGM could make their own high-rated accounts, and bail themselves out of cheating (not saying they will, but it's a possibility). I think MikeMirzayanov should be able to say "Ok you're trustworthy, you can be one of the voters if you want.".
Well, first of all, why would a LGM cheat lmao. I know that reaching red through telegram jokes are fun, but dont take them seriously lol.
https://www.quora.com/Is-there-any-correlation-between-intelligence-and-how-law-abiding-someone-is
I don't see why several GMs living in the same city can't theoretically cooperate and work as a team to share ideas/solutions during codeforces contests. This would boost their score if that's what they care about.
I just want to say one thing on this (pasting quora link for obvious reasons)
https://www.quora.com/Why-are-there-so-many-stupid-humans-in-the-world-on-the-internet
I'm not saying that you are stupid. But you are surely naive and most likely very young.
Based on personal deductions , I think ppl who reach GM level have done a ton of practice and generally do CP cuz they enjoy the sport and are good at it, so they are quite unlikely to cheat during a contest .
I fully agree with you. But the key word in your statement is
unlikely
.And not just GM+ people, but even much lower rank holders seem to be quite unlikely to cheat in general. After cheaters purge and rating recalculations for the last two contests, my rating score only increased by a whooping +1 point. The impact of cheating appears to be more or less just in the ballpark of a measurement noise right now.
Still I believe that the situation may quickly deteriorate if cheating detection gets entirely removed from the platform. And I believe that assuming absolute honesty of all GM/LGM people also would be a mistake. Now you are free to downvote. I'm out of this discussion.