CodeChef Chef and his daily routine Solution – CodeChef CHEFROUT Solution

Problem Name: Chef and his daily routine Solution
Problem Code: CHEFROUT Chef and his daily routine Solution in C
Problem Number : CodeChef – Chef and his daily routine Solution, 
Online Judge : CodeChef Online Judge Solution
Category: Beginner
Solution Language : C
CodeChef Solution Snake Procession - CodeChef SNAKPROC Solution

CodeChef Solution Chef and his daily routine – CHEFROUT Code in C:

#include<stdio.h>
#include<string.h>
int main()
{

int
N=100000,i,l,T;
char
s[N];
scanf("%d",&T);
while
(T>0)
{

int
flag=0;
scanf("%s",s);
l=strlen(s);
for
(i=0; i<l-1; i++)
{

if
(((s[i]=='E')&&(s[i+1]=='C'))||((s[i]=='S')&&(s[i+1]=='E'))||((s[i]=='S')&&(s[i+1]=='C')))
{

flag=1;
printf("non");
break
;
}


}

if
(flag==0)
{

printf("yesn");
}

T--;
}

return
0;
}

Demonstration:

Just implement this in coding. Since having any problem just put a comment below. Thanks
Tags: CodeChef Online Judge Solution, CodeChef OJ Solution list, CodeChef Problems Solution, CodeChef solver, CodeChef all problem solution list, CodeChef Chef and his daily routine   code in C, CodeChef CHEFROUT  code in C++, CodeChef Snake Procession solution in C, CodeChef solution, CodeChef Chef and his daily routine solution in C, CodeChef Chef and his daily routine in C++-CPP,CodeChef Chef and his daily routine solution in C# (C sharp),CodeChef CHEFROUT in Java,CodeChef Chef and his daily routine  solution in Python,

By Maniruzzaman Akash

Maniruzzaman Akash is a freelance web developer with most popular Laravel PHP frameork and Vue JS

Leave a Reply

Your email address will not be published. Required fields are marked *