fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. int main()
  5. {
  6. ll int t;
  7. cin>>t;
  8. string e,d;
  9. while(t--)
  10. {
  11. cin>>e>>d;
  12. string shifted;
  13.  
  14. for (auto const &ch : e)
  15. shifted += ch + 3;
  16.  
  17. if (d.compare(shifted) != 0)
  18. cout<<"NO"<<endl;
  19. else
  20. cout<<"YES"<<endl;
  21. }
  22. return 0;
  23. }
Success #stdin #stdout 0s 4464KB
stdin
2
jfppflk mission
main void
stdout
YES
NO