辗转相除法求最大公约数与最小公倍数 摘要:解题思路:1.最大公约数:辗转相除 2.最小公倍数:两数乘积/最大公约数注意事项:参考代码:#include<stdio.h> int Max_GY(int x,int y); int Min_…… 题解列表 2023年02月28日 0 点赞 0 评论 95 浏览 评分:0.0
自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { //输入处理 float a,b,c,del…… 题解列表 2023年02月28日 0 点赞 0 评论 119 浏览 评分:0.0
[编程入门]自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:def copy(a): lst="aeiou" for i in a: for j in lst: if i == j:…… 题解列表 2023年02月28日 0 点赞 0 评论 162 浏览 评分:0.0
python 1621字符串编辑 带解析 摘要:def de(): #删除 for i in range(len(s)): #找到要替换的 直接改为空字符 然后跳出 if E[1]==s[i]: s[i]=…… 题解列表 2023年03月01日 0 点赞 0 评论 159 浏览 评分:0.0
只想说明一个小的细节问题 摘要:解题思路:很简单注意事项:注意数学小问题,分母不为0!!!!!!参考代码:#include<stdio.h>int main(){ int a,b,c; float i; double s1=0.0,…… 题解列表 2023年03月01日 0 点赞 0 评论 147 浏览 评分:0.0
2820: 含k个3的数 摘要:解题思路:注意事项:参考代码:m,k = map(int,input().split()) # 定义计数器 count = 0; n = m # 遍历 for i in range(1,n…… 题解列表 2023年03月01日 0 点赞 0 评论 189 浏览 评分:0.0
python 比较字符串 带解析 摘要:S=input().split() #输入字符 分割s1=S[0]s2=S[1]if s1==s2: print(0)elif s1>s2: for i in range(min(len(…… 题解列表 2023年03月01日 0 点赞 0 评论 161 浏览 评分:0.0
2836: 数组逆序重放 摘要:#include<stdio.h>#include<math.h>int main(){ int n; scanf("%d",&n); int a[n]; for(int i …… 题解列表 2023年03月01日 0 点赞 0 评论 262 浏览 评分:0.0
呢个大神看看为啥我这个有一个案例过不去 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double n,m; long long l; doubl…… 题解列表 2023年03月01日 0 点赞 0 评论 224 浏览 评分:0.0
2839: 石头剪刀布 摘要:#include<stdio.h> #include<math.h> int main() { int n,na,nb; scanf("%d %d %d",&n,&na,…… 题解列表 2023年03月01日 0 点赞 0 评论 169 浏览 评分:0.0