Morass

Untitled

Apr 23rd, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. char r[128],R[128];
  2. struct st{
  3.     char s[55];
  4.     int L;
  5.     void gt(){scanf("%s",s);L=strlen(s);}
  6.     bool operator<(const st&h)const{
  7.         strcpy(r,s),strcpy(r+L,h.s);
  8.         strcpy(R,h.s),strcpy(R+h.L,s);
  9.         return strcmp(r,R)<0;
  10.     }
  11.  
  12. }S[1<<16];
Advertisement
Add Comment
Please, Sign In to add comment