题目 1115: DNA----题解 摘要:解题思路:注意事项:参考代码:Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a,b; String arr[][]…… 题解列表 2023年03月14日 0 点赞 0 评论 365 浏览 评分:9.9
DNA(Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main{ public static void main(String[] …… 题解列表 2023年03月14日 0 点赞 0 评论 310 浏览 评分:9.9
用vector容器 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>#include<string>using namespace std;int main(){ vec…… 题解列表 2023年03月14日 0 点赞 0 评论 378 浏览 评分:0.0
时间显示--简短易理解 摘要:解题思路:既然不要求显示毫秒,那么最后毫秒的数值不影响我们要显示的时分秒,直接将其舍去即可;将所给的毫秒值转化为秒数值ps,然后对其分析:首先考虑要显示的秒数()因为秒数的取值范围是0-59,所以对 …… 题解列表 2023年03月14日 0 点赞 0 评论 386 浏览 评分:0.0
单词分析--实现代码 摘要:参考代码:#include <bits/stdc++.h> using namespace std; string s; int nu[27]; int main() { cin>>s…… 题解列表 2023年03月14日 0 点赞 0 评论 371 浏览 评分:6.5
实数的打印 摘要:解题思路:注意事项:输出时注意一行输出的两个数之间有一个空格参考代码:n = float(input())for i in range(1, 4): print(("%6.2f "%n)*i)…… 题解列表 2023年03月14日 1 点赞 0 评论 386 浏览 评分:6.0
另一个理解求所有1——n-1排列的和为k, 摘要:我原本想的是求出所有的排列和为k,任何set去重,结果搞完了才发现,顺序乱了。 后面看了b站他说有一个贪心的思想: 当前取的数字,一定是大于、等于上一个取数的。 然后借个问题就解决了,比如:5 …… 题解列表 2023年03月14日 0 点赞 0 评论 622 浏览 评分:2.0
外出旅行,python 摘要:解题思路:注意事项:参考代码:f,m,x,p=map(int,input().split())count=0while m>x+p: if f!=0: f-=1 m-…… 题解列表 2023年03月14日 0 点赞 0 评论 388 浏览 评分:0.0
自定义函数求一元二次方程 摘要:解题思路:注意事项:1、当判别式小于0时,会出现虚数;2、最终结果要保留三位小数;3、两个解是以空格分隔的。参考代码:a,b,c = map(int,input().split())d = b**2-…… 题解列表 2023年03月14日 0 点赞 0 评论 577 浏览 评分:9.9
新手最能看懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char ch[1000]; int sum=0; get…… 题解列表 2023年03月14日 0 点赞 0 评论 286 浏览 评分:0.0