7 kyu
Sexagenary Cycle (干支): How old am I?
109LanXnHn
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Lua translation!
This comment has been hidden.
I spoiler it, this would made it a 8 kyu, and it is the key and simple thing to solve in this kata.
Approved! (Modifed description to language-agnostic and some cleaning on test cases)
Cool kata @LanXnHn
Just out of interest (maybe relevant for the kata description also): why if the year of birth == present year does the calendar always say the person is 60 years old rather than 0 (full) years old?
i.e. if one full year hasn't gone by yet, the situation would be descibed by for example ("甲子", "甲子") also or am I misunderstanding the calendar?
(I understand the same situation applies to all multiples of 60, but presumably in practical use no-one ever reached 120 years old or 180 etc so the confusion would not arise often)
謝謝(用過的翻譯器)!
Thank you for completing this kata.
The point of
0
or60
is just personal arbitrary.In general, I never heard anyone said "The child is 0 year old." but they would use "day", "week" or "month".
This is just to make it simple, otherwise
1
and61
,2
and62
, etc. It will be too complicated.