[编程入门]自定义函数之数字后移 (C语言代码) 摘要:解题思路:因为不支持变长数组,所以使用了动态数组,最简单的方法就是新建两个一样的动态数组,一个用来存放原始数据,一个用来存放结果数据。根据n和m来改变原始数组。注意事项:n和m的临界区域参考代码:#i…… 题解列表 2019年05月08日 0 点赞 0 评论 1096 浏览 评分:0.0
[编程入门]自定义函数之字符串拷贝 (C语言代码) 摘要:解题思路:走一个窍门,就是直接从第M个输出,当然也可以建立一个新的动态数组来存放结果字符。注意事项:输出字符时,第m个字符是从str[m-1];参考代码:#include<stdio.h>#inclu…… 题解列表 2019年05月08日 0 点赞 0 评论 739 浏览 评分:0.0
C语言训练-求车速 (C语言代码) 摘要:解题思路:暴力破解,直接从1递归,判断其是否符合条件注意事项:参考代码:#include <stdio.h> long fun(long x) { long sum = 95859 + …… 题解列表 2019年05月08日 0 点赞 0 评论 619 浏览 评分:0.0
[编程入门]自定义函数之整数处理 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun2(int s1[10]){ int i; for(i=0;i<10;i++) scanf("%d",&s1[i]);}i…… 题解列表 2019年05月08日 0 点赞 0 评论 876 浏览 评分:0.0
蓝桥杯基础练习VIP-时间转换 (C语言代码)简单,水题、、、 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h>int main(){ int x; int h,m,s; scanf("%d",&x); h=x/3600; m=(x-h*360…… 题解列表 2019年05月09日 0 点赞 0 评论 618 浏览 评分:0.0
蓝桥杯算法提高VIP-模拟计算器 (C语言代码)简单!! 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h>int main(){ int a,b; char c; scanf("%d %d %c",&a,&b,&c); switch(c)…… 题解列表 2019年05月09日 0 点赞 0 评论 864 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 (C语言代码)简单;;; 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h>enum cai{shi,bu,jian};int main(){ enum cai cai1,cai2; int a,b; sca…… 题解列表 2019年05月09日 0 点赞 0 评论 1055 浏览 评分:0.0
蓝桥杯算法提高VIP-Quadratic Equation (C语言代码)水。。 摘要:解题思路:无注意事项:1,scanf()输入double 用%lf printf()输出double 用%f; 2,注意计算的运算顺序;参考代码:#include<stdio.h>#i…… 题解列表 2019年05月09日 0 点赞 0 评论 928 浏览 评分:0.0
A+B for Input-Output Practice (V) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, x, s, m; scanf("%d", &n); for(int j = 0;…… 题解列表 2019年05月09日 0 点赞 0 评论 715 浏览 评分:0.0
A+B for Input-Output Practice (VI) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, s, x; while(scanf("%d", &n) != EOF) { …… 题解列表 2019年05月09日 0 点赞 0 评论 579 浏览 评分:0.0