Five Little Ducks _ Next Verse

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Print every next verse of this song (the next verse of the last verse is the first verse):

Five little ducks
Went out one day
Over the hill and far away
Mother duck said
"Quack, quack, quack, quack."
But only four little ducks came back.

Four little ducks
Went out one day
Over the hill and far away
Mother duck said
"Quack, quack, quack, quack."
But only three little ducks came back.

Three little ducks
Went out one day
Over the hill and far away
Mother duck said
"Quack, quack, quack, quack."
But only two little ducks came back.

Two little ducks
Went out one day
Over the hill and far away
Mother duck said
"Quack, quack, quack, quack."
But only one little duck came back.

One little duck
Went out one day
Over the hill and far away
Mother duck said
"Quack, quack, quack, quack."
But none of the five little ducks came back.

Sad mother duck
Went out one day
Over the hill and far away
The sad mother duck said
"Quack, quack, quack."
And all of the five little ducks came back.

Options

exec is denied

rejudge feature is enabled

now post-mortem time, all source codes will be revealed

Sample input:_

Five little ducks
Went out one day
Over the hill and far away
Mother duck said
"Quack, quack, quack, quack."
But only four little ducks came back.

Sample output:

Four little ducks
Went out one day
Over the hill and far away
Mother duck said
"Quack, quack, quack, quack."
But only three little ducks came back.

Sample input:_

One little duck
Went out one day
Over the hill and far away
Mother duck said
"Quack, quack, quack, quack."
But none of the five little ducks came back.

Sample output:

Sad mother duck
Went out one day
Over the hill and far away
The sad mother duck said
"Quack, quack, quack."
And all of the five little ducks came back.

Sample input:_

Sad mother duck
Went out one day
Over the hill and far away
The sad mother duck said
"Quack, quack, quack."
And all of the five little ducks came back.

Sample output:

Five little ducks
Went out one day
Over the hill and far away
Mother duck said
"Quack, quack, quack, quack."
But only four little ducks came back.

Ranking

C _

RankUserSizeTimeDateStatistics
1sadakiyo6800.04042020/02/13 19:58:561B / ?B / ?B

Language Ranking_

RankLangUserSizeScore
1Csadakiyo68010000

return to the top page