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

Автор Bilal04, история, 22 месяца назад, По-английски

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.

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

»
22 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Where's your code?

  • »
    »
    22 месяца назад, # ^ |
      Проголосовать: нравится +2 Проголосовать: не нравится
    #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 месяца назад, # ^ |
        Проголосовать: нравится +9 Проголосовать: не нравится

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

»
22 месяца назад, # |
  Проголосовать: нравится +2 Проголосовать: не нравится
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.