How to process blank line in c++?

Правка en1, от dush1729, 2015-12-30 08:57:23

I am trying to solve Niceness of the string but i am getting WA because i think i am unable to process blank lines. For blank lines output will be zero. I am using scanf(" %[^\n]s",a) which will ignore blank lines.

My code

Теги string, spoj

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский dush1729 2015-12-30 08:57:23 329 Initial revision (published)