题解列表

筛选

阶乘数列(递归调用)

摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { double sum=0; for(int ……

while循环的理解

摘要:解题思路:注意事项:参考代码:#include"stdio.h"int pow(int n) { int sum = 1; int i = 0; while (i < 3) { sum *= n; ……

1743: 大整数排序

摘要:解题思路:把数当成字符串,用向量把他们装起来,长度长的一定比长度短的数大,长度一样就直接判断字符串谁大谁小注意事项:参考代码:#include<bits/stdc++.h> using namesp……

自定义函数之数字后移

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[1001]; int b[1001]; int i,n,m; scanf("%d",&n); fo……

非常普通的小白解法。。。

摘要:解题思路:注意事项:for循环内count[]内的值和i的起始值需要注意,数组从count[0]开始。所以代码内后两个for循环条件略有不同。参考代码:#include<stdio.h>int mai……