题解列表

筛选

计算三角形面积

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

计算线段长度

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

大象喝水 调用ceil函数

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

3016: 第几项

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

3015: 幂的末尾

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

用c语言以最简短的代码量解决自由落体问题

摘要:解题思路:将第一次下落和第二次上升看为一个整体,这个整体的和为第二次上升距离的三倍,最终求总距离时可以看作是将每一个整体相加,最终再减去最后一次上升的部分即可注意事项:题目想让你解答的是减去最后一次上……

3014: 计算星期几

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