Guest User

Untitled

a guest
Feb 7th, 2017
2,165
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string.h>
  3. using namespace std;
  4. int main()
  5. {
  6.     string a,b;
  7.     cin >> a >> b;
  8.     if (a==b)
  9.     cout << -1;
  10.     else
  11.     cout << max(a.size(),b.size());
  12. }
RAW Paste Data