题意:说来也可笑 这题是我先开始攻的 结果WA也最多 第三个拿下………… 完完全全被格式坑了有木有= =、 WA14次啊 我也是够敢交 也是UVJ上太严 有些格式错误也给WA 最后一组竟然不空行 伤不起啊!!至于这题的方法啥的倒没啥特殊 换行是硬伤啊!!!
代码如下(写的略啰嗦):
#include
#include
using namespace std;
struct lian
{
int c;
char b;
}L[4];
int main()
{
L[0].b='A';
L[1].b='C';
L[2].b='G';
L[3].b='T';
int i,j,k,M;
int T,m,n,mist;
char str[50][1001],out[1001];
struct lian test;
cin>>T;
while(T--)
{
mist=0;
i=0;
cin>>m>>n;
M=m;
while(M--)
{
cin>>str[i++];
}
i=0;
while(i
test.c)
test=L[j];
}
out[i]=test.b;
i++;
}
for(i=0;i