基因相关性(两个数组对比) 摘要:解题思路:依靠循环和数组对比注意事项:注意要用%s 而不是%c 来输入字符串参考代码:#include<stdio.h>#include<string.h>int main(void){ flo…… 题解列表 2023年10月22日 0 点赞 0 评论 437 浏览 评分:9.9
2848: 基因相关性 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int main() { double a; cin…… 题解列表 2023年10月21日 0 点赞 0 评论 156 浏览 评分:9.9
基因相关性(不知道为什么用gets,还是fgets,都通过不了,有没有大佬来说一下) 摘要:参考代码: ```c #include #include #define MAX 500 int main() { double c; scanf("%lf",&c); get…… 题解列表 2023年09月21日 0 点赞 0 评论 217 浏览 评分:0.0
2848: 基因相关性(C语言) 摘要: #include #include int main() { float x; scanf("%f",&x); char a[501],b[501]; sca…… 题解列表 2023年08月21日 0 点赞 0 评论 451 浏览 评分:6.4
基因相关性(C++)简单实用 摘要:参考代码:#include <iostream>#include <string>using namespace std;string compareDNA(const string& dna1, c…… 题解列表 2023年07月16日 0 点赞 0 评论 322 浏览 评分:9.9
2848-基因相关性 摘要:解题思路:注意事项:如果本题采用gets()的输入方法,那么会一直报错,不清楚为什么。scanf()就不会报错。参考代码:#include<stdio.h> #include<string.h> …… 题解列表 2023年06月20日 0 点赞 0 评论 126 浏览 评分:0.0
基因相关性 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年05月19日 0 点赞 0 评论 211 浏览 评分:9.9
基因相关性 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){ char a[1010],b[1010]…… 题解列表 2023年04月12日 0 点赞 0 评论 162 浏览 评分:0.0
字符串--3.基因相关性 摘要:解题思路: 得用scanf("%s",str)输入字符串,用gets(str)会结果错误,原因可能是复制输入字符的时候有空格;区别:scanf("%s",str)---遇到空格就停止; …… 题解列表 2023年03月24日 0 点赞 0 评论 167 浏览 评分:0.0
Python数据有误 摘要:# 关于Python使用长度第一个字符串无法AC的不解 ## 使用第一个字符串长度(即s1) ```python yu = float(input()) s1 = input() s2 = …… 题解列表 2023年03月18日 2 点赞 7 评论 572 浏览 评分:9.9