2848: 基因相关性
摘要:解题思路:注意事项:交了三次,大概知道了这个代码的易错点首先是没有使用.strip()处理输入,如果输入包含首尾空格或换行符会影响比较其次是没有考虑两行DNA长度不一致的问题最后是我将两行字符串比较时……
题解 2848: 基因相关性
摘要: #include
using namespace std;
int e;
double c,z;
char a[510],b[510];
in……
c代码记录之基因相关性(提出问题,用scanf能过,用gets过不了)
摘要:提出问题,用scanf能过,用gets过不了
//用scanf
#include
#include
int main()
{
cha……
2848: 基因相关性
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){ doubl……
基因相关性(不知道为什么用gets,还是fgets,都通过不了,有没有大佬来说一下)
摘要:参考代码:
```c
#include
#include
#define MAX 500
int main()
{
double c;
scanf("%lf",&c);
get……