编写题解 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 评论 452 浏览 评分:9.9
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:def fenli(a): for i in a: print(i,end=' ')a = input()fenli(a)…… 题解列表 2024年06月03日 0 点赞 0 评论 280 浏览 评分:0.0
自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:def tiqu(a): for i in a: if i in b: print(i,end='')a = i…… 题解列表 2024年06月03日 0 点赞 0 评论 120 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:def lmjp(a,b): print(a+b)a = input()b = input()lmjp(a,b)…… 题解列表 2024年06月03日 0 点赞 0 评论 191 浏览 评分: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 评论 237 浏览 评分:9.9
迭代法求平方根(c语言) 摘要:解题思路和注意事项:迭代法公式:求a的平方根的迭代公式为: X[n+1]=(X[n]+a/X[n])/2 要求前后两次求出的差的绝对值少于0.00001。迭代法是不断重复,每次迭代出的值是不断逼近所求…… 题解列表 2024年06月03日 0 点赞 0 评论 297 浏览 评分:0.0
猴子吃桃的问题(c语言) 摘要:注意事项:猴子是先吃一半再吃一个,所以我们需要先加一个再乘二。参考代码:#include <stdio.h> int main(){ int n,sum=1; scanf("%d",&n);…… 题解列表 2024年06月03日 0 点赞 0 评论 297 浏览 评分:0.0
自由下落的距离计算(c语言) 摘要:解题思路:注意事项:这个共经过多少米是指从开始到落地所经过的点,而非到落地反弹后的点参考代码:#include <stdio.h> int main(){ int n; float high…… 题解列表 2024年06月03日 0 点赞 0 评论 126 浏览 评分:0.0
找第一个只出现一次的字符 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2024年06月03日 0 点赞 0 评论 310 浏览 评分:0.0
编写题解 2062: [STL训练]第二小整数 摘要:```c #include int main() { int n,n_i=0,num,i,j,nums[10],temp; scanf("%d",&n); while(n_i…… 题解列表 2024年06月03日 0 点赞 0 评论 258 浏览 评分:9.9