题解列表

筛选

StringBuffer中的reverse

摘要:# ```java public class c1031 { public static void main(String[] args) { // TODO 自动生成的方法……

题目 1160: 出圈

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define MAX 100000int main() {    int m,n;    while(scanf("%d%d",&n,……

数组的距离

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>int main() {    int m,n,temp;    s……

题解 1004: [递归]母牛的故事

摘要:解题思路:递归就是程序调用自己的算法。将该问题转化为数学公式,可判断f(n)=f(n-1)+f(n-3).f(n)是第n年的母牛总数注意事项:~scanf("%d",&n) 上面的代码不是输入为0时,……

二级C语言-阶乘公式求职python

摘要:解题思路:sum,b初始值要确定好               range(1,k+1)注意事项:参考代码:n=int(input())def fact(k):    sum,b=0,1    for……

sbsbsbbsbsbsbbsbsbs

摘要:```cpp #include using namespace std; long long n; double fibo(long n){ if(n == 1 || n == ……