蓝桥杯算法训练VIP-数对-题解(C语言代码) 摘要:```c #include int main(){ int n; scanf("%d", &n); for (int i = 1; i …… 题解列表 2019年07月08日 0 点赞 0 评论 1282 浏览 评分:9.9
蓝桥杯算法训练VIP-数的统计-题解(C语言代码) 摘要:```c #include int main(){ int n, arr[1000] = { 0 }; scanf("%d", &n); for (int i = 0, x; i <…… 题解列表 2019年07月08日 0 点赞 0 评论 1027 浏览 评分:9.9
蓝桥杯算法训练VIP-数组查找及替换-题解(C语言代码) 摘要:```c #include int main(){ int n, b, arr[100]; scanf("%d %d", &n, &b); int j = 0; for (int…… 题解列表 2019年07月08日 0 点赞 0 评论 1097 浏览 评分:9.9
蓝桥杯算法训练VIP-斜率计算-题解(C语言代码) 摘要:注意一下绝对值就好 ```c #include #include int main(){ int x1, x2, y1, y2; scanf("%d %d %d %d", &x1,…… 题解列表 2019年07月08日 0 点赞 3 评论 1729 浏览 评分:9.9
[编程入门]C语言循环移位-题解(C语言代码) 1.第一步:将十进制数化为对应的二进制数采用数组来存储每一位二进制数,二进制数从低位到高位刚好对应数组下标从小到大,即此时数组下标为0的位置上存放的是二进制数的最低位。1.第二步:对每一个二进制位,寻找移位后所在的位置(i为每个元素的现有下标,n为循环移动的次数)。 题解列表 2019年07月08日 0 点赞 0 评论 1501 浏览 评分:9.9
[编程入门]自定义函数之数字后移-题解(C语言代码) 虽然题目要求的是数组的求解,在看了通过的情况,大多数的同学都是可以完成的,因此,由于这道题的规律性,我联想到了链表,因此我提供一种链表求解思路:首先需要会链表啊,其次将headptr与lastptr->nextptr连接起来即可;其中headptr为链表的开端, 题解列表 2019年07月08日 0 点赞 0 评论 1882 浏览 评分:9.9
蓝桥杯算法提高VIP-质因数-题解(Java代码) importjava.util.Scanner;publicclasstest{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);intn=sc.nextInt();intm=n;Stringstr=n+"=";for 题解列表 2019年07月09日 0 点赞 0 评论 1330 浏览 评分:9.9
程序员爬楼梯-题解(C语言代码) 摘要:递归 ```c #include int count = 0; void run(int n,int cur){ if (cur >= n){//递归边界 if (cur == n…… 题解列表 2019年07月09日 0 点赞 1 评论 1510 浏览 评分:9.9
蓝桥杯算法提高VIP-12-1三角形 -题解(C语言代码) ```c#include#includetypedefstruct{doublex;doubley;}_Power;typedefstruct{_Powera;_Powerb;_Powerc;}_Plan;doubleside(_Powerpower1, 题解列表 2019年07月09日 0 点赞 0 评论 1415 浏览 评分:9.9
蓝桥杯算法提高VIP-11-1实现strcmp函数-题解(C语言代码) 摘要:```c #include int mystrcmp(char *str1, char *str2){ int i = 0; while (str1[i] != '\0' && str2…… 题解列表 2019年07月09日 0 点赞 1 评论 1309 浏览 评分:9.9