electicode
HomeCoursesResourcesProblemsNational OlympiadContestsLeaderboard
...

Aquarium

Time Limit: 1000msMemory Limit: 256MB
View Submissions

Problem Description

You are a virtual aquarium designer. The aquarium is home to different fish, each with its own character and appearance.

You need to depict the aquarium with its inhabitants on the screen using symbols.

You are given descriptions of the fish:

  • Big boss fish: She is the main one in the aquarium, swimming strictly to the right. She has a powerful body and an eye strictly in the center. Looks like: ><(((('>

  • Party fish: Wearing a hat and swimming to the left. There are bubbles around her. Looks like: <^[[[><

  • Baby fish: Just born. Very small, but already knows how to swim. Looks like: ><>

  • Smiling fish: She is in a great mood and swims, swaying her whole body. Looks like: <*)))))><

  • Twin baby fish: This fish looks exactly like the baby, but swims towards him. Together they seem to be playing underwater tag. Looks like: <><

Display all the fish in the aquarium in the specified order to create a beautiful "underwater scene."

Examples

Example 1
Input
.
Output
><(((('>
<^[[[><
><>
<*)))))><
<><

© 2026 Electicode. All rights reserved.