mahmoud_arafa's blog

By mahmoud_arafa, history, 5 years ago, In English

Hello,

Here is the problem link.

Here is my submission.

I am applying lazy propagation but I don't know why I got TLE. Any help?

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
2 months ago, # |
  Vote: I like it -8 Vote: I do not like it

Maybe is too late, but is good manners don't use the stringstream ss(s);

Also in the real life, the stringstream is very slow, and I agree is a little bit trick to read the input from this es.