-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfancy.cpp
More file actions
50 lines (43 loc) · 684 Bytes
/
fancy.cpp
File metadata and controls
50 lines (43 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
cin.ignore(256, '\n');
while(t--)
{
string s;
// getline(cin,s);
string s1 ="not";
string s2=" ";
string s3;
getline(cin,s3);
s=s2+s1+s2;
string s4,s5;
s4=s1+s2;
s5=s2+s1;
int l=s3.length();
int found = s3.find(s);
int found1 = s3.find(s4);
int found2=s3.find(s5);
if(found>=0)
{
cout<<"Real Fancy"<<endl;
}
else if(found1==0)
{
cout<<"Real Fancy"<<endl;
}
// cout<<found2;
else if(found2==l-4)
{
cout<<"Real Fancy"<<endl;
}
else
{
cout<<"regularly fancy"<<endl;
}
// cout<<s<<endl;
}
}