Loading...
皮球从某给定高度自由落下,触地后反弹到原高度的一半,再落下,再反弹,……,如此反复。问皮球在第n次落地时,在空中一共经过多少距离?第n次反弹的高度是多少?...
本题要求两个给定正整数的最大公约数和最小公倍数。输入格式:输入在一行中给出两个正整数M和N(≤1000)。输出格式:在一行中顺序输出M和N的最大公约数和最...
本题要求实现一个函数,计算阶数为n,系数为a[0] ... a[n]的多项式$f(x)=∑_{i=0}^n(a[i]×x^i)$ 在x点的值。函数接口定义...
本题要求实现一个函数,统计给定字符串中英文字母、空格或回车、数字字符和其他字符的个数。函数接口定义:void StringCount( char s[] ...
本题要求实现一个函数,用下列公式求cos(x)的近似值,精确到最后一项的绝对值小于e:$cos(x)=x^0/0!−x^2/2!+x^4/4!−x^6/6...