kabeer27's blog

By kabeer27, history, 5 years ago, In English

EDIT: Thanks for all the help, his rating has been updated and solutions unskipped

Okay so this was my solution: https://codeforces.net/contest/1328/submission/74415216

And this is the other guy, whom I do not know at all. agrawalamritanshu82 https://codeforces.net/contest/1328/submission/74481132

Our solutions do match almost exactly the same, however neither do I use Ideone or any platform where my code can be leaked and neither have I given my solution to that person. It seems like a coincidence since the solution was simple that it matched almost exactly. Now I do kind of feel bad for that guy since his solutions got skipped due to this, what can I do in this case?

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

| Write comment?
»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Since the code is very simple. I believe both of you solve it independently. But maybe your password is too simple so that somebody login your account. Anyway change your password first:>

  • »
    »
    5 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    it isn't a simple password but I have changed it just in case

  • »
    »
    5 years ago, # ^ |
      Vote: I like it +13 Vote: I do not like it

    I think codeforces sends an email whenever there's a login from a new device. At least I receive those emails.

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

I think the code was simple that there is small but not zero chance to have 2 code similar to each other

  • »
    »
    5 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Suggest you resubmitting it, good luck :P

    • »
      »
      »
      5 years ago, # ^ |
      Rev. 2   Vote: I like it 0 Vote: I do not like it

      My solution is not skipped. The other guy, however, got his solutions skipped since it was a rated contest for him I feel bad, so if there is any way to fix this that's why I am asking for advice.

      • »
        »
        »
        »
        5 years ago, # ^ |
        Rev. 3   Vote: I like it -32 Vote: I do not like it

        Actually, there is but not friendly. Write some none-meaning function and put them in fron of main() like this

        inline void JustToAvoidSkippedAnother() { while (0 > 1); }
        inline void JustToAvoidSkippedOther() { while (false > true); } 
        inline void JustToAvoidSkipped() {
            JustToAvoidSkippedAnother();
            JustToAvoidSkippedOther();
            return void(true);
        }
        
        void main()
        {
            JustToAvoidSkipped();
        
            while (input())
            {
                solve();
            }
        
            return 0;
        }
        
»
5 years ago, # |
  Vote: I like it +17 Vote: I do not like it

same here, I write all my codes locally I don't use platforms like ideone. This was a simple coincidence, And I'm frankly surprised to see how similar our codes were.

»
5 years ago, # |
  Vote: I like it -6 Vote: I do not like it

But how did you come to know that HIS SOLUTION GOT SKIPPED. Hope you both are not friends :P

  • »
    »
    5 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I think both users receive a notification in such a case.

    • »
      »
      »
      5 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      yeah i got a notification that my solutions were same, but mine weren't skipped since probably i submitted first

      • »
        »
        »
        »
        5 years ago, # ^ |
          Vote: I like it +8 Vote: I do not like it

        They were earlier marked skipped, but now they have been counted for and so is the rating for that contest :)