Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdio>
- //#include <algorithm>
- //#include <cmath>
- //#include <ctime>
- //#include <string>
- //#include <cstdlib>
- //#define ll long long int
- //#define TESTCASE int t;scanf("%d", &t);for(int i = 0; i < t; i++)
- //#define PF printf
- //#define SF scanf
- #define STDIN freopen("in.txt", "rt" , stdin);
- //#define STDOUT freopen("out.txt", "wt", stdout);
- using namespace std;
- string str[1000000];
- int main()
- {
- string numberToSearch = "looooooooooooool";
- int n = 10000;
- //cin >> numberToSearch;
- STDIN
- string num;
- int index = 0;
- bool flag = false;
- while(cin >> num)
- str[index++] = num;
- //int start_time = clock();
- //for(int i = 0; i < 10; i++) cout << str[i] << endl;
- for(int i = 0; i < n; i++)
- {
- if(str[i] == numberToSearch)
- {
- flag = true;
- break;
- }
- }
- //int end_time = clock();
- if(flag) cout << "Found" << endl;
- else cout << "Not Found" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement