我有一只猫和一只狗.
我让他们在同一时间,小猫/小狗.这是humanYears年前.
现在回到各自的年龄为[humanYears,catYears,dogYears]
笔记:
humanYears> = 1humanYears仅整数*15猫年,第一年 *+ 9猫年,第二年 *+ 4猫年后每年对于
*15狗年历第一年 *+ 9狗年第二年 *+ 5狗年后每年对于
** ** 引用
http://www.catster.com/cats-101/calculate-cat-age-in-cat-yearshttp://www.slate.com/articles/news_and_politics/explainer/2009/05/a_dogs_life.html如果你喜欢这个习题还有另外一个相关的一个这里
点击查看答案
本博客所有编程题目及答案均收集自互联网,主要用于供网友学习参考,如有侵犯你的权益请联系管理员及时删除,谢谢 题目收集至https://www.codewars.com/ https://www.codewars.com/kata/cat-years-dog-years
