Saleh127

Untitled

May 10th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1.  
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4. #define ll long long
  5. int main()
  6. {
  7. string a,c;
  8. ll i,j=0,k,l;
  9. cin>>a>>c;
  10. for(i=0;i<a.size();i++)
  11. {
  12. if(a[i]!=c[i])
  13. {
  14. j=1;
  15. }
  16. }
  17. if(j) printf("No\n");
  18. else printf("Yes\n");
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment