Блог пользователя Mikemirzyanov1

Автор Mikemirzyanov1, история, 5 лет назад, По-английски

Hello everyone.

I think I have found a very huge bug in the Codeforces System which can potentially lead to destroying the purpose of Codeforces.

Alright so here is something I found.

During Div2/Div1 contests people are divided into groups and placed in different rooms for hacking purposes.

Suppose Alice is participating in Div2 contest and she solves a problem say problem B. She then has the option to lock the problem so that she can hack other people in her room. Locking a problem allows one to see another person's code for the same problem in the same room.

So far good, now begins the mischievous part.

To mess with someone from her room say Bob who has also solved problem B, Alice copies his code and submits it from her alternate account without making a single change in the code. What this will do is trigger the automatic plagiarism checker and Bob would get screwed up for having the same code as some other participant.

Alice has multiple accounts on Codeforces and she has the power to screw up everyone in her room for all the problems she solves

MikeMirzyanov Please look into this.

Also, provide suggestions if any in the comment section to tackle this problem.

P.S. Can someone in the comment section provide the What would happen if we use 100% of our brain meme I could not find it.

  • Проголосовать: нравится
  • -47
  • Проголосовать: не нравится

»
5 лет назад, # |
Rev. 3   Проголосовать: нравится -19 Проголосовать: не нравится

You cannot lock a solution till you make an AC submission for it (As far as I am aware). So its totally pointless.

Something like this is plain stupid though. 100 accounts to kill 100 participants. Ain't nobody got time for that. The contest will be over before)

They guy may as well solve the next problem to gain better ranking...

»
5 лет назад, # |
Rev. 2   Проголосовать: нравится -14 Проголосовать: не нравится

Original comment:

It's impossible to directly copy other's code via hack.

Please stop posting such messy blogs.

BTW, your handle is interesting :)

Edited:

As other said, codeforces is smart enough to detect this.

Honestly, the title is too excited.

I hate this, so I was so angry.

Sorry for offensing.

  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    If one can see the code he/she can type it I think.

    BTW nice profile picture.

    • »
      »
      »
      5 лет назад, # ^ |
      Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

      Manually type it?

      • You must type almost every single character correctly.
      • You are wasting a lot of time.
      • You are ruining the victim.

      What's the point of it?

      Profile picture? yeah a lot of people hate this.

      No offense, care about your contribution plz.

  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Ever heard of image to text converters? Download image process it and done. You've got the code. Its written as computer text so it is pretty easy to convert and you won't need except like some basic of A.I as characters are the same.(it is not a handwriting)

    • »
      »
      »
      5 лет назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      Are you talking about google lens??

      • »
        »
        »
        »
        5 лет назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        umm, I don't know this app. But any application that can simply copy the text(with spaces and new lines) will work. But such an application doesn't have to be smart enough to detect different types of letters as all letters are written in one font.

»
5 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

I won't say anything about that bug (or not a bug),

But no need for bad words man.

»
5 лет назад, # |
Rev. 2   Проголосовать: нравится +7 Проголосовать: не нравится

I think the later submission gets skipped, when two users submit the same solution, so not need to worry, best of luck!

»
5 лет назад, # |
Rev. 2   Проголосовать: нравится -7 Проголосовать: не нравится

Well, I must acknowledge the fact that you tried very hard to point out this issue.

BUT

Codeforces is intelligent enough to detect 'Who copied from whom?'


Now consider the following solution (I am not sure if it exists or not but can surely be implemented very easily):
Say Alice gets plagiarism with Alice0 and Alice1.

With your assumption,
Submission_time(Alice) < Submission_time(Alice0) and Submission_time(Alice) < Submission_time(Alice1)
Hence, plagiarism checker will give a chance to Alice (but not to Alice0 and Alice1) to justify which he/she will for sure and will not lose any problems.
Problem solved! :)
  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    what if Alice and Alice0 are in the same room again in a later contest?

    • »
      »
      »
      5 лет назад, # ^ |
        Проголосовать: нравится +2 Проголосовать: не нравится

      In that case:


      if(Submission_time(Alice) > Submission_time(Alice0))
          // Alice is the culprit
          swap(Alice,Alice0);
      
      // Alice0 is the culprit
      plagiarism_checker(Alice,Alice0)
      
»
5 лет назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

As far as I know, the plagiarism checks and accepts the first submission of that code. If you were to copy an already AC code, you would submit later on. Everything can be checked from the submission ID. The submission that has a smaller submission ID will be considered as the actual submission, while other submissions are considered plagiarism.

Yes, just look at the submission ID. The first to submit it gets it. Since you are copying a submission, you would get a higher submission ID, thus you will be considered as plagiarism.