Supreme Gene Coding UNSOLVED Problem Statement Yuval has recently completed his research…
- User
Supreme Gene
Coding
UNSOLVED
Problem Statement
Yuval has recently completed his research on Genetics and has realized that modern scientists are capable of Genetically Engineering any species. So he wants to start analyzing whether his genes are capable of being engineered or not.
The genetic code is a string consisting of only four characters i.e. A, G, C, T. For a genetic code to be supreme, the number of As in the code must be strictly less than the number of Ts.
Write a program that will determine the Genetic Supremacy of a genetic code.
Input Format
• The only line of the input contains a string consisting of only four characters (A, G, C, T)
Constraints
• The length of the string won't exceed 105
• All characters in the string belong to the set ("A", "C", "T", "G").
Output Format
• Print "YES" if the code is supreme, else "NO"
Evaluation Parameters
• Sample Input
AGTCTCTATAAAG ,Sample Output
NO
• Explanation
The count of "A" in the given string is 5. The count of "T" is 4. Since 5>4, return "NO". Give cpp answer for this problem in a function taking an input a string
- Assistant