题解列表

筛选

3018: 末两位数

摘要:解题思路:每次都用末两位数进行相乘后取余注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math……

2024: 链表删除练习

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> typedef struct Node {     int data;    ……

寻找通项来解决问题

摘要:解题思路:我们观察数列不难发现第一个数列    1,3,6,10,15…可以发现:(1)1=1(2)3=1+2(3)6=1+2+3(4)10=1+2+3+4(5)15=1+2+3+4+5……(6)第n……

3020: 最大数位置

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

完数的判断,数组

摘要:解题思路:1.通过遍历找出n(要判断的数)的所有非本身的因子i。例如n=6,则找出i为1,2,32、将找出的i先放入数组里面,同时将i累加起来记做k3、比较k和n的值,如果相等,则break跳出循环输……

笨小猴(C语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char a[100];    int i,j;;    int w;    int b[200]={0}……