How to process blank line in c++?

Revision en1, by 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

Tags string, spoj

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English dush1729 2015-12-30 08:57:23 329 Initial revision (published)