题解列表

筛选

题解 1019: [编程入门]自由下落的距离计算

摘要:解题思路:小球每次下落到回到半空,都会经过上一次高度的1.5倍距离。注意事项:小球最后一次下落没有回到半空,所以要减去最后一次的高度。参考代码:#include<stdio.h>int main(){……

筛选N以内的素数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int sushu(int x){    for(int j=2;j<=sqrt(x);j++)    ……

汉诺塔(C语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){     void hanoi(int n,char x,char y,char z);     int m;  ……

结构体之成绩记录(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ char id[20]; char name[20]; int……

来自欧亚的天才刘磊

摘要:解题思路:这都能不懂了?注意事项:带上你的脑子,和一颗专注且想要求知的心来吧参考代码:int t,n,k=0; scanf("%d",&n); t=n; int i; for(i=0;i<5;i++)……

二级C语言-自定义函数

摘要:#include double fact(double n) {     int i;     double sum=1.0;     for(i=1;i<=n;i++)         s……

猴子吃桃问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n,i;     scanf("%d",&n);    int t=1;    for(i=1;i……

链表合并(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ int id; int score; student *nex……