题解列表

筛选

规律的数列求和

摘要:解题思路:利用malloc函数动态分配内存将类似于斐波那契数列数列存储在两个动态数组内再利用一个动态数组来接收注意事项:使用malloc函数最后要free()参考代码:/*题目 1018: [编程入门……

最简单的思路

摘要:#include<stdio.h> int main(){ char c; int sum = 0; while(scanf("%c",&c)){    ……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[61],str1[61]; gets(str); str[……

c语言代码解决问题

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

自定义函数之字符串反转

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>            //strlen()函数在string头文件中,一定得先调用一下  int ……

奇数单增序列

摘要:解题思路:注意事项:参考代码:public class Main {    public static void main(String[] args) {        Scanner sc = n……

谁考了第K名

摘要:解题思路:注意事项:参考代码:public class Main {     public static void main(String[] args) {         Scanner sc =……

枚举加分类

摘要:解题思路:结果只可能是4、6、8中的一个值。def func(x):    sign=8    for a in (0,1):        for b in (2,3):            fo……