Hi,
so far I have known that the time complexity for concatenating two strings is O(n). So
while (a.length() < b.length()) a = "0" + a;
is O(n^2). But it still passed the TL: http://codeforces.net/contest/1066/submission/44198754
I am wondering why it passed. Could anyone help me?