Envato Ads

Monday, August 6, 2018

Codeforces Solutions- 96A Football

Hi friends, In this post I am gonna give you the solution of the codeforces problem: 96A - Football.
The problem screenshot is given below:


3 comments:

  1. Replies
    1. It doesn't matter.you can used for(i=0;i<o;i++) in this statement.

      Delete
  2. #include
    int main()
    {

    int i,c=1;
    char f[100];
    gets(f);
    for(i=0;i<strlen(f);i++){
    if(f[i] == f[i+1]){
    c++;
    if(c==7){
    printf("YES");
    return 0;
    }
    }
    else{c=1;}
    }
    printf("NO\n");


    return 0;

    }

    ReplyDelete