BestCoder Round #65 1001 ZYB's Biology HDU5590
来源:互联网 发布:淘宝的服务中心在哪里 编辑:程序博客网 时间:2024/06/05 08:20
ZYB's Biology
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 522 Accepted Submission(s): 387
Problem Description
After getting 600 scores in NOIP ZYB(ZJ−267) begins to work with biological questions.Now he give you a simple biological questions:
he gives you aDNA sequence and a RNA sequence,then he asks you whether the DNA sequence and the RNA sequence are
matched.
TheDNA sequence is a string consisted of A,C,G,T ;The RNA sequence is a string consisted of A,C,G,U .
DNA sequence and RNA sequence are matched if and only if A matches U ,T matches A ,C matches G ,G matches C on each position.
he gives you a
matched.
The
Input
In the first line there is the testcase T .
For each teatcase:
In the first line there is one numberN .
In the next line there is a string of lengthN ,describe the DNA sequence.
In the third line there is a string of lengthN ,describe the RNA sequence.
1≤T≤10 ,1≤N≤100
For each teatcase:
In the first line there is one number
In the next line there is a string of length
In the third line there is a string of length
Output
For each testcase,print YES or NO ,describe whether the two arrays are matched.
Sample Input
24ACGTUGCA4ACGTACGU
Sample Output
YESNO
Source
BestCoder Round #65
出题人:直接按照题意模拟即可.
0 0
- BestCoder Round #65 1001 ZYB's Biology HDU5590
- BestCoder Round #65 ZYB's Biology
- 【BestCoder Round 65A】【水题】ZYB's Biology DNA与RNA是否匹配
- 【字符串】HDU5590ZYB's Biology【BestCoder Round #65】
- BestCoder Round #65 ZYB's Game
- BestCoder Round #65 ZYB's Premutation
- BestCoder Round #65 ZYB's Game
- ZYB's Biology
- BestCoder Round #65 B. ZYB's Game(组合游戏)
- BestCoder Round #65 D. ZYB's Tree(树形dp)
- BestCoder Round #65 HDOJ5592 ZYB's Premutation(树状数组+二分)
- BestCoder Round #65 1002 ZYB's Game HDU5591
- HDOJ 5590 ZYB's Biology
- ZYB's Biology解题报告
- HDOJ 5590 ZYB's Biology
- HDU 5590 ZYB's Biology
- HDU 5590 ZYB's Biology
- hdoj-5590-ZYB's Biology
- 数据结构 总结
- POJ 1789 Kruskal
- Linux下Tomcat的启动、关闭
- KMP算法程序
- 51nod贪心例子独木舟问题
- BestCoder Round #65 1001 ZYB's Biology HDU5590
- 操作系统概念(第十章) 文件系统接口
- codeforces Prison Transfer
- DM8168在屛幕上添加图标
- IOS实现多个View的切换
- 黑马程序员——方法重写(覆盖)与重载
- 应修改selinux参数导致Kernel panic -not syncing:Attempted to kill init
- java 读取资源文件两种方法
- php备份数据库