initial commit
This commit is contained in:
parent
d5e54aa24d
commit
c3015e4c96
20
236A-BoyOrGirl/236A.cpp
Normal file
20
236A-BoyOrGirl/236A.cpp
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user