ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1257. Hyphenation

A very strange thing (may be WA#9 skip)
Posted by Neznakomec 23 Jul 2013 03:13
A bug or feature the situation that
last <ENTER> does not count as an error??

For example on test

"
12
un-usual
for-ced
re-al
sum-mer
N-ED
home-work
sec-ret
ho-lidays
Wi-zard
th-Er
L-so
Holi-days
Harry Potter was a highly unusual boy in many ways.
For one thing, he hated the summer holidays more than any
other time of year. For another, he really
 wanted to do his homework but was forced to do it in
secret, in the dead of night. And he also happened
to be a wizard.
"

my program gives away
"
Harry Potter was a highly unusual boy in
 many ways.
For one thing, he hated the summer holi-
days more than any
other time of year. For another, he
really
 wanted to do his homework but was for-
ced to do it in
secret, in the dead of night. And he al-
so happened
to be a wizard.<ENTER>
"
(All the attention on line carry after "wizard.")

I've done it to pass WA#9, cause understood
that
output:
"
"
(nothing)

on input like
"
<ENTER>
"
not good...

Edited by author 23.07.2013 03:14

Edited by author 23.07.2013 03:14