Across The Ocean
Code Solutions on GitHub β
Across The Ocean
Chapter 1 – The Secret Sea Meadow πΏ
This is the story, about Xayah, Yago and Zuri. Xayah was adventurous orca girl, Yago a lovely octopus π boy and Zuri an inspiring jellyfish hermaphrodite. They were all young, and the best friends π one could have.
Xayah, Yago and Zuri had many other friends, some older, much older, some younger, but many of them shared something uncommon in the sea world π.
Xayah, Yago and Zuri had a deep emotional connection to each other. If Xayah showed some courage, all of them felt invincible. If Yago was sad, Xayah and Zuri also felt sad. And if Zuri came up with an amazing idea, all of them where bubbling with new plans.
Their friends had other uncommon attributes. Some groups read each others mind π§ , some could smell π each other miles away and a few could hear π each other from the other side of the planet π, … but their stories will be told in other chapters.
Despite that Xayah, Yago and Zuri were best friends, it was still not easy for them. Their parents expected, that orcas, octopuses and jellyfishes all should only care about each other. Orcas should only play with orcas, octopuses should only learn from other octopuses and jellyfishes should stay within the family all the time.
What Xayah, Yago and Zuri did, was almost expected. They met at their secret π€ place far away from everyone else, as often as possible. Reaching their secret place was not a task for the faint-hearted:
- an almost impenetrable maze of twining plants π±. Xayah took the lead on this. It took them 165 seconds, to get through the maze.
- a tricky lair with lots of sharp rocks πͺ¨. Yago could always remember all the dangerous spots, it took them 41 seconds to get through the lair.
- a landscape full of black and white smokers π, some of them which had to be avoided at all cost. Zuri was leading and it took them another 223 seconds.
How many seconds did it take Xayah, Yago and Zuri to meet at their secret sea meadow?
How many minutes, rounded up?
Hints
- Use the plus operator (+) to add the three seconds
- A minute consists of 60 seconds
- Rounding up can often be done with a ceil function from a math library
Chapter 2 – God Rays Upon the Seabed
Xayah, Yago and Zuri together reached their secret place. It was amazingly beautiful. Sea grass waving with the flow of water. Many fishes π, crabs π¦, slugs π, starfishes, … all with with unimaginable colors π, all dancing πΊπ with the current. The sun π shining some rays through the water surface. It was Zuri who almost immediately felt in trance, couldn’t barely move out of joy π. Not shortly after that, even bubbly Xayah was silent and just was happy in the moment. The sun was heating up the water. It felt like in bathtub π, a feeling anyone and everyone wished would just never stop.
After some time, Xayah, Yago and Zuri realized that if they listened carefully, that in fact, there was a concert πΆ ongoing. The fishes π were singing π€, each of them just repeating a single letter π€. Was this true, it was a song they made up for the 3 friends? The 1. 4. 7. and so on fish sung something for Xayah. The 2. 5. 8. and so on fish sung something for Yago and the 3. 6. 9. and so on fish sung something for Zuri. That this together still sounded soothing, seemed to be an art π on its own. Did they ask π some questions?
HAHILE-OLXHLAAOY--AYZHAU-GRWOIH--YWW-HHAYYR--EDD-OOY--OYYUOO-UUB--LHHAAACVVKEE---ANNNIODN--ECW-OHALIROTMRESS
How many fishes are there?
What do the fishes say to Xayah?
What do the fishes say to Yago?
What do the fishes say to Zuri?
Hints
- What is the length of the string?
- Print the 0, 3, 6, 9, 12, 15, 18, 21, … letter of the sentence.
Chapter 3 – Cicis Friends
Yago, the octopus π answered first: I don’t know why, but they’re all very helpful. I can cook π³ much more sophisticated meals π, climbing π§ up everywhere, but most important I can caress about nine of you at the same time.
Zuri, the jellyfish answered: I also don’t know why, but I can assure you I win in “Hide and Seek” all the time. At least as long as it is not dark under water, they laughed. Whenever the sun goes down, I sometimes start to glow π in different colors.
The enjoyment reflected also on Xayahs the orca. She answered: I am proud of my whitest white and my darkest black. I look beautiful, is this not enough? When you look closely I have purple line along my belly. This is me.
All the fish swum in unison, again the orchestra, but without a conductor.
The tiniest of all fishes π, Cici, opened the mouth. Zuri, Yago, Xayah, we have also a story to tell, but we need to know something first:
How long does it take you to swim π around the planet π?
You mean if she would swim along the equator, the whole 40’000 km? Xayah asked?
Cici nodded.
Zuri said: Xayah is, fins down, our fastest swimmer, she can swim up to 50 kilometers per hour, and if she rides some waves π, she can reach up to 100 kilometers per hour.
Yago said: Yes Zuri is right. I have to clam myself to Xayah, or else she is just off and away. But I can propel π myself with almost 40 kilometers per hour. Zuri can swim up to 10 kilometers per hour.
How many hours does Xayah have to swim around earth, without riding waves and without taking any break?
How many days, rounded up?
How many days would Yago have?
How many days would Zuri have?
Hints
- The, way how to solve this, is almost the same as in chapter 1.
- Take the speed from Xayah without any waves.
- A day has 24 hours.
Category | story |
---|---|
Coding Level | simple |
Coding Ideas | sum, division, modulo, time |
Coding Languages | Code Solutions on GitHub β |
Story Genre | fantasy, children |
Story Content Key Words | children, animal, water, ocean, friendship, adventure, orca, jellyfish, octopus |
Story License | CC BY-NC-SA 4.0 International |
Parental Rating | 6+ For Everyone |
How To Quote Story | (Noctiluca, adapted by StoryCoder.dev under CC BY-NC-SA 4.0 International) |
Picture License | CC BY-NC-SA 4.0 International |
How to Quote Picture | (adapted by StoryCoder.dev under CC BY-NC-SA 4.0 International) |
Available Solutions | JavaScript |
Title | Across The Ocean |
Author | Noctiluca |
Tags | 6+, adventure, animal, children, division, fantasy, friendship, javascript, jellyfish, modulo, no-c, no-c#, no-c++, no-clojure, no-dart, no-erlang, no-go, no-haskell, no-nim, no-perl, no-prolog, no-python, no-ruby, no-rust, no-swift, no-typescript, no-zig, ocean, octopus, orca, simple, story, sum, time, water |