Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2011
573
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <map>
  4.  
  5. using namespace std;
  6.  
  7. string s, t;
  8. map<string,int> my;
  9.  
  10. int main()
  11. {
  12.     cin >> s;
  13.     for (int i=0; i<10; i++)
  14.     {
  15.         cin >> t;
  16.         my[t] = i;
  17.     }
  18.     for (int i=0; i<8; i++) cout << my[s.substr(i*10, 10)];
  19.     cout << '\n';
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement