Why this code gets MLE

Revision en1, by Travis_Bickle, 2022-05-13 03:55:40

Problem: https://mirror.codeforces.com/contest/1156/problem/B

Code: https://www.ideone.com/v5gzlN

I tried finding why this code could get MLE but failed however I think the error could be in the while loop in a certain case it keeps adding to the string until there is MLE so correct me if I am wrong

Tags mle, help, problem, string

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Travis_Bickle 2022-05-13 03:55:40 327 Initial revision (published)