DNA (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main() { int hang,lie; int a,b,zu,k,w,e,l,…… 题解列表 2019年03月15日 0 点赞 0 评论 985 浏览 评分:0.0
蓝桥杯算法提高VIP-扑克排序 (C语言代码) 摘要:解题思路:给扑克牌标记注意事项:参考代码: #include<stdio.h>#include<string.h>struct { char nu[3]; …… 题解列表 2019年03月15日 0 点赞 0 评论 1037 浏览 评分:0.0
DNA (C语言代码) 摘要:解题思路:先把第一组输出,其余重复的,少输出一行,孩子以为x是*,结果死活不过,后来把*换成x还不对,最后发现热家的X是大写的注意事项:参考代码:#include <stdio.h>#include …… 题解列表 2019年03月15日 0 点赞 0 评论 1262 浏览 评分:0.0
【明明的随机数】 (C语言代码) 摘要:解题思路:把重复的变成负数,在排序和输出时跳过注意事项:参考代码:#include <stdio.h>#include<math.h>int main (){int a[100];int i,j,m,…… 题解列表 2019年03月15日 0 点赞 0 评论 584 浏览 评分:0.0
IP判断 简短 摘要:解题思路:----------------------------------------------每个IP字段不允许前导为0每个IP字段不允许出现负号如果每个IP字段第一位不是数字则判定N如果每个…… 题解列表 2019年03月15日 0 点赞 0 评论 1229 浏览 评分:0.0
蓝桥杯算法提高VIP-计算质因子 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int isprime(int num){//判断质数 int i; if(num<…… 题解列表 2019年03月15日 0 点赞 0 评论 466 浏览 评分:0.0
蓝桥杯历届试题-蚂蚁感冒 (C语言代码) 摘要:解题思路:注意事项:搞不懂,为啥,答案呢错误20%,但思路是对的,看成穿过,就好解了参考代码:#include <stdio.h>#include <math.h>int i=0,sum=1,m;in…… 题解列表 2019年03月16日 0 点赞 0 评论 679 浏览 评分:0.0
【密码】 (C++代码) 摘要:解题思路:简单模拟注意事项:参考代码:#include<bits/stdc++.h> using namespace std; char a[52]; int main() { int c…… 题解列表 2019年03月16日 0 点赞 0 评论 624 浏览 评分:0.0
P1004 (C++代码)简短易懂,回溯减枝 摘要:解题思路:回溯减枝注意事项:避免重复搜索,之前已经搜索过的点保存于d数组中;参考代码:int r, c;int map[100][100], d[100][100];int dx[4] = {0, 1…… 题解列表 2019年03月16日 1 点赞 0 评论 841 浏览 评分:0.0
P1005 (C++代码)简单的01背包问题(循环 + 动态规划)比递归更加快更加简短 摘要:解题思路:动态规划 + 循环注意事项:进一步对递归进行优化参考代码:#include <iostream> using namespace std; int t, m; int arr[10…… 题解列表 2019年03月23日 1 点赞 0 评论 1035 浏览 评分:0.0