620 - Cellular Structure
Moderator: Board moderators
Hey!
I think this problem's tip is..
len=string length
Mutant : len is 1, and str[0]='B'
Simple : if len is 1, and str[0]='A'
Fully-Grown : str[len-1]='B', and str[len-2]='A'
Mutagenic : str[0]='B', and str[len-1]='A'
Else : Mutant
In case of Mutant, it has 2 cases to print.
I got AC thie problem in C, line 18.
len=string length
Mutant : len is 1, and str[0]='B'
Simple : if len is 1, and str[0]='A'
Fully-Grown : str[len-1]='B', and str[len-2]='A'
Mutagenic : str[0]='B', and str[len-1]='A'
Else : Mutant
In case of Mutant, it has 2 cases to print.
I got AC thie problem in C, line 18.
-
- Experienced poster
- Posts: 136
- Joined: Fri Apr 15, 2005 3:47 pm
- Location: Singapore
- Contact:
-
- Experienced poster
- Posts: 106
- Joined: Thu Jan 29, 2004 12:07 pm
- Location: Bangladesh
- Contact:
How do you know BA = o ?"BAAB", BA = O, and AB,so BAAB should be "FULLY-GROWN"
BA does not match with any of the given patterns.
Code: Select all
A <- simple
OAB <- fully-grown
BOA <- mutagenic