weird Run time error!!

Revision en2, by checkMate09, 2016-08-21 22:25:53

i was coding solution for the problem C. The Smallest String Concatenation . the solution depends mainly on overriding the cmp() function. first version caused RTE

bool cmp(const string &a, const string &b){

    return a+b <= b+a;
}

second version Accepted without = sign.

bool cmp(const string &a, const string &b){

    return a+b < b+a;
}

why the = sign caused RTE ?

UPD : RTE submission http://codeforces.net/contest/632/submission/20033016

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English checkMate09 2016-08-21 22:25:53 77
en1 English checkMate09 2016-08-21 22:15:42 496 Initial revision (published)