编写题解 1011: [编程入门]最大公约数与最小公倍数--简单解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n; scanf("%d %d",&m,&n); int min = (m<n)?m:n; int …… 题解列表 2022年03月09日 0 点赞 0 评论 459 浏览 评分:0.0
编写题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void han(int m,int n){ int min = (m<n)?m:n; int max = (m>n)?m:n; …… 题解列表 2022年03月09日 0 点赞 0 评论 434 浏览 评分:0.0
编写题解 1028: [编程入门]自定义函数求一元二次方程--借鉴大佬的 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;float delta_func(float a,float b…… 题解列表 2022年03月09日 0 点赞 0 评论 526 浏览 评分:0.0
编写题解 1042: [编程入门]电报加密--解题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<stdio.h>#include<string.h>#include<cmath>using namespace s…… 题解列表 2022年03月09日 0 点赞 0 评论 522 浏览 评分:0.0
(fly)1709: 数据结构-Floyd(弗洛伊德)最短路径算法(python) 摘要:解题思路:注意事项:参考代码:n=int(input()) inf=float('inf') dp=[] for i in range(n): dp.append(li…… 题解列表 2022年03月09日 0 点赞 0 评论 584 浏览 评分:0.0
编写题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3]; int t; for(int i=0;i<3;i++){ s…… 题解列表 2022年03月09日 0 点赞 0 评论 543 浏览 评分:0.0
编写题解 1115: DNA 摘要:解题思路:利用二维数组,应该很容易看懂(绝不是因为我想不出更聪明的做法了)。注意事项:大小写X卡了一会,注意要大写。参考代码:n = eval(input()) for i in range(n):…… 题解列表 2022年03月09日 0 点赞 0 评论 710 浏览 评分:0.0
DNA(关键还是要找规律) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ int n; int a,b; int c; scanf("%d",&n); for(int i=1;i<=n…… 题解列表 2022年03月09日 0 点赞 0 评论 556 浏览 评分:0.0
1708: 数据结构-最短路径算法 摘要:解题思路:注意事项:参考代码:n,s=map(int,input().split()) dp=[] for i in range(n): dp.append(list(map(int,i…… 题解列表 2022年03月09日 0 点赞 1 评论 563 浏览 评分:0.0
做题记录2022.3.9(ac:100%) 解题思路:两种方向:从a到b的范围内取数,然后分割判断该数是否符合要求,这样会存在一些冗余判断,但实现起来较为简单先生成平方数,然后在所给定的范围内拼接出符合要求的数,完全没有冗余,但考虑情况较多.如:选几个平方数来拼?如何保证不超出范围?怎么避免拼出相同的数?参考代码:a, 题解列表 2022年03月09日 0 点赞 0 评论 739 浏览 评分:0.0