I've just finished solving a programming problem, and it feels good. Even though the actual problem is quite trivial... Still, it feels GOOD.

Here's the problem:

The short definitoin: Given an input date, a cycle of days, tell whether a cycle will fall on a particular month and year.

The long definiton: In the island of Zikihor, the bats celebrate the first full moon of each month. The Bat Moon is actually another moon not known to human beings. The occurence of the full Bat moon is dictated by each newly crowned King Bat. During the reign of the King Bat, the full Bat moon occurs on a fixed cycle starting from the day of crowning. The moon cycle is determined by the King Bat. The program is to determine when the bats will celebrate for a given year and month.

Previously: No Subject