题解列表

筛选

[编程入门]迭代法求平方根 (C语言)

摘要:解题思路:这个比较思路比较浅显,就是让该公式进行多次的计算,然后不断逼近结果。注意事项:最后记得绝对值输出参考代码:#include<stdio.h>#include<math.h>int main(……

3015: 幂的末尾

摘要:``` #include using namespace std; int main(){ int a,b,ans=1,x=1; cin>>a>>b; for( int i=1;i=……

3016: 第几项

摘要:``` #include using namespace std; int main(){ int m,n,sum=0; cin>>m; for( int i=1; ;i++ ){……

大象喝水 调用ceil函数

摘要:解题思路:调用ceil函数注意事项:参考代码:#include<stdio.h>#include<math.h>#define Pi 3.14159int main(){  int h,r;  dou……

计算线段长度

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){double Xa,Xb,Ya,Yb;scanf("%lf %lf",&Xa,&Y……

计算三角形面积

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double distance(float x1, float y1, float x2, float ……

链表合并c++

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef int Status;typedef struct lnode{    int……