SHARE
TWEET

Untitled

a guest Jan 22nd, 2020 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.  
  8. int ile = 0;
  9. int n;
  10.  
  11. string mozliwe_klawisze[10] =
  12. {
  13.     " ",
  14.     ".,?\"",
  15.     "abc",
  16.     "def",
  17.     "ghi",
  18.     "jkl",
  19.     "mno",
  20.     "pqrs",
  21.     "tuv",
  22.     "wxyz"
  23. };
  24.     cin>>ile;
  25.     while(ile--)
  26.     {
  27.         cin>>n;
  28.         int klawisz[n], ile_nacisniety[n];
  29.         for(int i=0; i<n; i++)
  30.         {
  31.             cin>>klawisz[i];
  32.         }
  33.         for(int i=0; i<n; i++)
  34.         {
  35.             cin>>ile_nacisniety[i];
  36.         }
  37.  
  38.         for(int i=0; i<n; i++)
  39.         {
  40.             cout<<mozliwe_klawisze[klawisz[i]][ile_nacisniety[i]-1];
  41.         }
  42.         cout<<endl;
  43.     }
  44.     return 0;
  45. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top