Back
Close

Acrostic

Statement

 Goal

Output the word(s) formed from the first letter of each line.
For empty lines (possible spaces followed by newline) add a single space.
Finish when an input line is a single period ".", ignoring all further input.
There will be a maximum of 16 input lines.
Input
N lines:
.
Output
Line 1 : <hidden word> [<hidden word> ...].
Constraints
1 ≤ N ≤ 16
Example
Input
Hello World
Immortal Jellyfish
.
Output
HI.

Game modes
Fastest, Shortest, Reverse

Test cases
Simple Test
Input
Hello World Immortal Jellyfish .
Output
HI.

Simple Validator Validator
Input
Cuddly animal, furry tail .
Output
Cat.

Multiple words Test
Input
Hello inclusively Would our restaurant lovingly dine .
Output
Hi World.

Multiple words Validator Validator
Input
Finite occurrences reside look, it's on or off who cares plays .
Output
For loop.

Empty Test
Input
.
Output
.

Empty Validator Validator
Input
.
Output
.

Multiple Empty Lines Test
Input
Arctic division o grand . ignore me
Output
A dog.

Multiple Empty Lines Validator Validator
Input
All llamas look yellow orange under red blue ant sit eat . trailing garbage
Output
All your base.

Solution language

Solution

Stub generator input