-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA_Magic_Numbers.cpp
More file actions
41 lines (38 loc) · 841 Bytes
/
A_Magic_Numbers.cpp
File metadata and controls
41 lines (38 loc) · 841 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
#include<bits/stdc++.h>
using namespace std;
int t, count;
#define ll long long
#define yes cout << "YES" << endl;
#define no cout << "NO" << endl;
#define TestCase cin >> t; while(t--)
bool khuj_laga(string A, string B){
if(A.find(B) != A.npos){
return true;
}
else{
return false;
}
}
int position_khuj(string A, string B){
if(khuj_laga(A, B)){
return A.find(B);
}
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string A, B;
cin >> A;
for(int i = 0; i < A.length(); i++){
A[i] = tolower(A[i]);
}
cout << A << endl;
if(khuj_laga(A, "evan")){
cout << "Agrito Evan Vai" << endl;
}
if(khuj_laga(A, "erafat")){
cout << "Agrito Arafat vai" << endl;
}
return 0;
}