编写题解 2848: 基因相关性,python超简单 摘要:(python学子仔细读题哦)n = float(input()) DNA1 = input() DNA2 = input() # 比对两条DNA序列 matching_pairs = 0 …… 题解列表 2024年03月29日 0 点赞 0 评论 994 浏览 评分:4.7
2848: 基因相关性 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char str1[505] = {0}, str…… 题解列表 2022年10月26日 0 点赞 0 评论 703 浏览 评分:5.5
2848: 基因相关性(C语言) 摘要: #include #include int main() { float x; scanf("%f",&x); char a[501],b[501]; sca…… 题解列表 2023年08月21日 0 点赞 0 评论 860 浏览 评分:6.4
2848题: 基因相关性 摘要:参考代码: Scanner sc=new Scanner(System.in); double n = sc.nextDouble(); String x =…… 题解列表 2024年03月17日 0 点赞 0 评论 661 浏览 评分:9.9
基因相关性 摘要:解题思路:对应位置进行比较注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ double p; c…… 题解列表 2022年12月08日 0 点赞 1 评论 851 浏览 评分:9.9
基因相关性(两个数组的相似比例) ```c#include#include//要用到strlen函数intmain(){chara[501],b[501];floatsim;intlen,num=0;scanf("%f",&sim);//输入相似度scanf("%s",&a);//输入第一条基因scanf("%s", 题解列表 2023年01月17日 0 点赞 4 评论 869 浏览 评分:9.9
Python数据有误 #关于Python使用长度第一个字符串无法AC的不解##使用第一个字符串长度(即s1)```pythonyu=float(input())s1=input()s2=input()res=0n=len(s1)foriinrange(n):ifs1[i]==s2[i]:res+=1q=res/nifq>= 题解列表 2023年03月18日 5 点赞 7 评论 1031 浏览 评分:9.9
基因相关性(简单易懂) 摘要:解题思路:注意事项:注意sum和n的类型。参考代码:#include<stdio.h>#include<string.h>int main(){ int i; double n,j,k; …… 题解列表 2024年11月30日 1 点赞 0 评论 813 浏览 评分:9.9
基因相关性 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年05月19日 0 点赞 0 评论 587 浏览 评分:9.9
题解 2848: 基因相关性 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){ doubl…… 题解列表 2024年07月13日 0 点赞 0 评论 632 浏览 评分:9.9