Здравейте, имам проблем с тази задача не ми минават 2 теста в judge. Output 21 , Output 35 , тоест при вход 3. Колко трябва да е outputa при този вход.
Most people believe that 1 human year (HYHY) equals 7 dog years (DYDY), however, dogs reach adulthood in approximately 2 human years.
So it’s better to count the first two HY as 10 DY each and then count the remaining HY as 4 DY each.
Write a program that correctly converts human years (HY) to dog years (DY). You may need some form of conditional logic.
Constraints:
1<=HY<=15
това ми е кода : https://pastebin.com/bBTZsrzh
Благодаря!