Bilal04's blog

By Bilal04, history, 22 months ago, In English

Your solution 191878626 for the problem 1791B significantly coincides with solutions Bilal04/191878626, sam1617/191903840.

I firmly deny the allegation that I copied someone else's code or provided any form of assistance to other contestants during the coding contest.

In my code, I have used variables like 's' representing string, 'x' and 'y' representing x and y coordinates, and 'f' for flag which is very common, I am confident that the code I have submitted is entirely my own and that I have followed all the rules and guidelines of the contest.

This is a pure coincidence and I hope that this issue will be resolved quickly and fairly.

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

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

Where's your code?

  • »
    »
    22 months ago, # ^ |
      Vote: I like it +2 Vote: I do not like it
    #include<bits/stdc++.h>
    using namespace std;
    
    int main(){
    int t;cin>>t;
    while(t--){
        int n;cin>>n;
        string s;
        cin>>s;
        int x=0,y=0,f=0;
        for(int i=0;i<n;i++){
            if(s[i] == 'U') x++;
            if(s[i] == 'D') x--;
            if(s[i] == 'R') y++;
            if(s[i] == 'L') y--;
    
            if(x ==1 && y==1){
                f=1;break;
            }
        }
        if(f ==1) cout<<"YES"<<endl;
        else cout<<"NO"<<endl;
    }
        return 0;
    }
    
    • »
      »
      »
      22 months ago, # ^ |
        Vote: I like it +9 Vote: I do not like it

      Lol, this is virtually identical to my code, So I don't think u cheated. Hopefully ur submission gets accepted.

»
22 months ago, # |
  Vote: I like it +2 Vote: I do not like it
Your solution
The other solution

Such a problem will result in lots of code being the same. If we compile both solutions we will get the same machine code. Both solutions are literally the same thing from the machine's point of view.

  1. define a variable as an integer
  2. use cin to get the value of this integer
  3. define another variable as a string
  4. and so on...

I think Codeforces has another bug to fix.