Rating changes for the last round are temporarily rolled back. They will be returned soon. ×

How to process blank line in c++?

Revision en1, by div24ever, 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 div24ever 2015-12-30 08:57:23 329 Initial revision (published)