[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 122: include(/home/shoeb/public_html/www.matholympiad.org.bd/forum/includes/phpbb-latex.php) [function.include]: failed to open stream: No such file or directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 122: include() [function.include]: Failed opening '/home/shoeb/public_html/www.matholympiad.org.bd/forum/includes/phpbb-latex.php' for inclusion (include_path='.:/opt/php53/lib/php')
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 122: include(/home/shoeb/public_html/www.matholympiad.org.bd/forum/includes/phpbb-latex.php) [function.include]: failed to open stream: No such file or directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 122: include() [function.include]: Failed opening '/home/shoeb/public_html/www.matholympiad.org.bd/forum/includes/phpbb-latex.php' for inclusion (include_path='.:/opt/php53/lib/php')
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1042: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4786: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4788: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
BdMO Online Forum • View topic - BdOI 2013 National Problem 1

BdOI 2013 National Problem 1

Discuss everything related to IOI here. For more general or advanced topics use CS forum.

Moderators: bristy1588, Labib

Facebook Twitter

BdOI 2013 National Problem 1

Post Number:#1  Unread postby bristy1588 » Tue Jan 14, 2014 10:35 pm

DNA is one of the major macromolecules that are essential for all known forms of life.
Genetic information is encoded as a sequence of nucleotides in DNA. There are four types of
nucleotide in DNA, Adenine (A), Guanine (G), Cytosine (C) and Thymine (T). These four
nucleotides are expressed as A, G, C and T respectively.
Little sheep is interested in DNA sequencing and found a sequence of nucleotides. He
wonders whether this is a DNA or not. Help him to discover DNA.
You will be given a string representing the sequence, tell him whether it is DNA or not. The
sequence will be a DNA sequence if it only contains A, G, C and T.

INPUT
First line of the input contains an integer $T (T<100)$, number of test cases. Each of the next T
lines will represent one test case. Each test case consists of a single string S (length of S is
less than 100) of uppercase letters ($A$ - $Z$).

OUTPUT
For each test case, print the test case number starting from 1 and $YES$, if the sequence S is
DNA, $NO$, otherwise.


SAMPLE INPUT
Code: Select all
4
AC
WATLE
GOTAC
ACGTAGT

SAMPLE OUTPUT
Code: Select all
Case 1: YES
Case 2: NO
Case 3: NO
Case 4: YES



NOTE
If anyone has any trouble with their code please post your code here using the code option.
Bristy Sikder
User avatar
bristy1588
 
Posts: 92
Joined: Sun Jun 19, 2011 10:31 am

Share with your friends: Facebook Twitter

Return to International Olympiad in Informatics (IOI)

Who is online

Users browsing this forum: No registered users and 2 guests