My issue
NNONNONNONNONNO
My code
#include <stdio.h>
int main(void) {
int a,b,c,t;
scanf("%d",&t);
while(t--)
{
scanf("%d%d",&a,&b);
c=a+b;
if(c>6)
printf("\nYES");
else
printf("\NNO");
}
return 0;
}
Problem Link: EZSPEAK Problem - CodeChef
@prasadreddy67
Your logic and not right .
Plzz refer the following code for better understanding .
#include <stdio.h>
#include <string.h>
int main(void)
{
int t;
scanf("%d", &t);
while(t--)
{
int n, count=0;
scanf("%d", &n);
char s[n];
scanf("%s", s);
for(int i=0; i<n; i++)
{
if(s[i]!='a' && s[i]!='e' && s[i]!='i' && s[i]!='o' && s[i]!='u')
{
count++;
if(count>3) break;
}
else count=0;
}
if(count>3) printf("No\n");
else printf("Yes\n");
}
return 0;
}