#Fill to the line!
Fill to the line!
Given input consisting of the characters _
,
, and newline, fill the empty space up to the line!
Example:
I will use #
as the filler character in the example.
1. Input
________
2. Fill up to the line, but not above.
________
########
########
########
- You may assume that the input either is rectangular (is padded), or consists only of the line and newlines.
- You may assume that there is only one straight, unbroken line.
- The whitespace above the line is part of the input. Do not fill above the line.
Test cases:
"
Input
"
"
Output
"
**********
"
----
"
"
----
####
####
####
####
"
**********
"
________
"
"
________
########
########
########
"