[编程入门]迭代法求平方根[C语言] 摘要:解题思路: 欲求x的平方根, 要先假设一个x的初值,可以让x=1.0也可以让x=n,然后根据迭代公式 X(n+1)=(Xn+a/Xn)/2, 算出X1,再将X1代公式的右边算出下一个x的值等…… 题解列表 2024年01月15日 0 点赞 0 评论 532 浏览 评分:0.0
可以用数组的方式 摘要:解题思路:数组循环写入3个数字,输出第二个数字注意事项:参考代码:#include<stdio.h>int main(){ int a[3]; for(int i=0;i<3;i++) …… 题解列表 2024年01月15日 6 点赞 0 评论 1804 浏览 评分:9.9
(Python)使用split()方法分隔两个加数 split()方法能指定以某种字符串将分隔符对字符串进行切片,返回包含所有切片的列表[关于split()方法的介绍](https://www.runoob.com/python/att-string-split.html")##代码```pythonadds=input().split()print( 题解列表 2024年01月15日 0 点赞 0 评论 704 浏览 评分:9.9
没有比我更直观的了吧 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>struct stu{ char num[100]; char name[100];…… 题解列表 2024年01月15日 0 点赞 0 评论 491 浏览 评分:0.0
<c语言>while输出的纠正#输出时机的选择 解题思路:输入存储N,判断N以内的完数(题目要求是除本身外的因子之和等于本身),判断符合的数,输出该数并储存输出该数的因子。有意思的就是用数组来存储因子,原本我的构思都是写两个函数再加指针来写,后来我觉得这才多少题啊都这么麻烦不可能呀,就看了下题解, 题解列表 2024年01月14日 0 点赞 0 评论 423 浏览 评分:9.9
数1的个数,题目短吗 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,c,y,x,h; int count=0,b=0; scanf("%d",&n…… 题解列表 2024年01月14日 0 点赞 0 评论 609 浏览 评分:6.0
余数相同问题 编写题解 3011: 摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){ long long a,b,c; cin>>a>>b>>c; …… 题解列表 2024年01月14日 0 点赞 0 评论 496 浏览 评分:0.0
编写题解 3011: 余数相同问题编写题解 3011: 余数相同问题编写题解 3011: 余数相同问题编写题解 3011: 余数相同问题编写题解 3011: 余数相同问题编写题解 3011: 余数相同 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a,b,c; cin>>a>>b>…… 题解列表 2024年01月14日 0 点赞 0 评论 459 浏览 评分:0.0
1098: 陶陶摘苹果 摘要:解题思路: 注意事项:判断能否摘到苹果一定是大于等于哦参考代码:#include<stdio.h>#define APPLENUMBER 10int main(){ int bench_heig…… 题解列表 2024年01月14日 0 点赞 0 评论 529 浏览 评分:0.0
2834: 与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N, m, count; int a[100] = {0}; scanf("%d",…… 题解列表 2024年01月14日 0 点赞 0 评论 522 浏览 评分:0.0