找第一个只出现一次的字符 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2024年06月03日 0 点赞 0 评论 460 浏览 评分:0.0
自由下落的距离计算(c语言) 摘要:解题思路:注意事项:这个共经过多少米是指从开始到落地所经过的点,而非到落地反弹后的点参考代码:#include <stdio.h> int main(){ int n; float high…… 题解列表 2024年06月03日 0 点赞 0 评论 245 浏览 评分:0.0
猴子吃桃的问题(c语言) 摘要:注意事项:猴子是先吃一半再吃一个,所以我们需要先加一个再乘二。参考代码:#include <stdio.h> int main(){ int n,sum=1; scanf("%d",&n);…… 题解列表 2024年06月03日 0 点赞 0 评论 414 浏览 评分:0.0
迭代法求平方根(c语言) 摘要:解题思路和注意事项:迭代法公式:求a的平方根的迭代公式为: X[n+1]=(X[n]+a/X[n])/2 要求前后两次求出的差的绝对值少于0.00001。迭代法是不断重复,每次迭代出的值是不断逼近所求…… 题解列表 2024年06月03日 0 点赞 0 评论 410 浏览 评分:0.0
自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:def dcvi(m): for i in range(len(m)): print(m[len(m)-1-i],end='')m=i…… 题解列表 2024年06月03日 0 点赞 0 评论 355 浏览 评分:9.9
自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:def lmjp(a,b): print(a+b)a = input()b = input()lmjp(a,b)…… 题解列表 2024年06月03日 0 点赞 0 评论 296 浏览 评分:0.0
自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:def tiqu(a): for i in a: if i in b: print(i,end='')a = i…… 题解列表 2024年06月03日 0 点赞 0 评论 259 浏览 评分:0.0
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:def fenli(a): for i in a: print(i,end=' ')a = input()fenli(a)…… 题解列表 2024年06月03日 0 点赞 0 评论 409 浏览 评分:0.0
编写题解 1036: [编程入门]带参数宏定义练习 摘要:```c #include #define change(a,b) temp=a,a=b,b=temp; int main() { int a,b,temp; scanf("%d %d…… 题解列表 2024年06月04日 2 点赞 0 评论 616 浏览 评分:9.9
编写题解 1037: [编程入门]宏定义的练习 摘要:```c #include #define compute(a,b) result=a%b; int main() { int a,b,result; scanf("%d %d",&a…… 题解列表 2024年06月04日 0 点赞 0 评论 665 浏览 评分:9.9