initial commit

This commit is contained in:
ShazidMahsrafi 2023-06-07 20:14:47 +06:00
parent d5e54aa24d
commit c3015e4c96

20
236A-BoyOrGirl/236A.cpp Normal file
View File

@ -0,0 +1,20 @@
#include<bits/stdc++.h>
using namespace std;
int main()
{
char name[100];
cin>>name;
int i,j,len,count=0;
len=strlen(name);
for(i=0;i<len;i++)
{
for(j=i+i;j<len;j++)
{
if(name[i]==name[j]) count++;
}
}
cout<<len-count<<endl;
if((len-count)%2!=0) cout<<"IGNORE HIM!"<<endl;
else cout<<"CHAT WITH HER!"<<endl;
}