Codechef 6 aug 2025 first question test cases

include <stdio.h>

int main() {
// your code goes here
char a[3];
scanf(“%s”, a);
int c = 0;
for(int i= 0;i<=2;i++){
if(a[i]!=‘c’&&a[i]!=‘a’&&a[i]!=‘t’){
c = -1;
}
}

if(c==-1){
    printf("No");
}
else{
    printf("Yes");
}

return 0;

}
solution link-CodeChef: Practical coding for everyone
this solution is not correct for valid test cases which are tested by me but still showing correect answer please look on it.
string ttt
correct answer- NO
code output - YES

No.