Advertisement
vitormartinotti

Untitled

May 22nd, 2025
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5.     char a[124], p[10010];
  6.     scanf(" %s", a+97);
  7.     scanf(" %s", p);
  8.    
  9.     for(int i = 0; p[i] != '\0'; i++){
  10.         printf("%c", a[p[i]]);
  11.     }
  12.     return 0;
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement