Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <map>
- using namespace std;
- string s, t;
- map<string,int> my;
- int main()
- {
- cin >> s;
- for (int i=0; i<10; i++)
- {
- cin >> t;
- my[t] = i;
- }
- for (int i=0; i<8; i++) cout << my[s.substr(i*10, 10)];
- cout << '\n';
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement