Is
1 14
a valid input ??
Search found 5 matches
- Fri Aug 10, 2007 7:02 pm
- Forum: Volume 1 (100-199)
- Topic: 107 - The Cat in the Hat
- Replies: 278
- Views: 55669
- Fri Aug 10, 2007 6:21 pm
- Forum: Volume 1 (100-199)
- Topic: 107 - The Cat in the Hat
- Replies: 278
- Views: 55669
- Fri Aug 10, 2007 1:41 pm
- Forum: Volume 1 (100-199)
- Topic: 107 - The Cat in the Hat
- Replies: 278
- Views: 55669
- Fri Aug 10, 2007 12:44 pm
- Forum: Volume 1 (100-199)
- Topic: 107 - The Cat in the Hat
- Replies: 278
- Views: 55669
Getting Wrong Answer
I don't have math skills, so i try to solve this just using integers.
I find N and k (number of cat "generations") by cheking the reminders.
for the example input
216 125
I calculate like this
(N = 2)
216 % 2+1 = 0
125 % 2 = 1 // This reminder as to be 0 there is no such this as a HalfCat ...
I find N and k (number of cat "generations") by cheking the reminders.
for the example input
216 125
I calculate like this
(N = 2)
216 % 2+1 = 0
125 % 2 = 1 // This reminder as to be 0 there is no such this as a HalfCat ...
- Fri Aug 10, 2007 11:43 am
- Forum: Volume 1 (100-199)
- Topic: 107 - The Cat in the Hat
- Replies: 278
- Views: 55669