Find the Number of Pearls

Today is a very special day. It’s the birthday of only one girlfriend of programmer Shojib. Now, you all know, he wants to give a special gift to her. He wants to give her a rich ornament. To make the ornament very special he decided to make it as a hexagons shapes where the number of pearls in the ornament will consist of the outlines of regular hexagons with sides up to N pearls, when the hexagons are overlaid so that they share one vertex. The figure of the ornament will quite be like in the following.


This is a companion discussion topic for the original entry at https://toph.co/p/find-the-number-of-pearls

@hjr265
I believe that there might be some problem in the test cases.

You are right. The files had issues with line endings and some unnecessary whitespace in them.

It has been fixed now.

Btw, @hjr265
This post was created 3 days ago.
Then I wonder why the earliest submission is 2 months old?

These posts are created when the problem is published to the archive. This is a problem from a contest that took place a few months ago.

where are the picture’s?

2 posts were merged into an existing topic: SCB-PA Inter School and College Programming Contest 2019 Preliminary