真·哥德巴赫曾猜测 (C++代码)暴力才是王道!!! 摘要:解题思路: 暴力法证明。 纯粹来玩玩而已,不要认真参考代码:首先在写一个代码取出32767的内所有的素数,存到一个数组里面,可以借助文件操作。#include<iostream> #in…… 题解列表 2019年01月10日 0 点赞 2 评论 1214 浏览 评分:9.9
保留字母 ,双下标法 摘要:参考代码:#include<stdio.h> int main() { char str[81]; gets(str); int i=0,k=0; whil…… 题解列表 2019年01月10日 0 点赞 0 评论 596 浏览 评分:0.0
C语言考试练习题_排列 (智障编程) 摘要:#include <stdio.h> int main() { int a[4],i; for(i=0;i<4;i++) scanf("%d",a+i); pri…… 题解列表 2019年01月10日 0 点赞 2 评论 1562 浏览 评分:7.6
DNA (C语言代码) 摘要:参考代码:#include <stdio.h> #include <math.h> #include <stdlib.h> void deal(int a,int b) { in…… 题解列表 2019年01月10日 0 点赞 0 评论 774 浏览 评分:0.0
蓝桥杯算法提高VIP-寻找三位数 (C语言描述,dfs) 摘要:解题思路: 很明显这道题需要生成1-9的全排列,从中判断符合条件的结果,使用深度搜索算法就可以解决了。注意事项: 输出的三个 题解列表 2019年01月10日 0 点赞 0 评论 1647 浏览 评分:9.9
蓝桥杯历届试题-蚂蚁感冒 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n, num = 1;int c = 0;int a[50], b[50];int m…… 题解列表 2019年01月11日 0 点赞 0 评论 747 浏览 评分:0.0
蓝桥杯算法训练VIP-黑白无常 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int n;int a[8][2];int b[8];i…… 题解列表 2019年01月11日 0 点赞 0 评论 1324 浏览 评分:8.0
程序员爬楼梯 (C语言代码) 摘要:解题思路:不会dp,直接递归。注意事项:参考代码: #include <stdio.h>int jjk(int n){ if(n==1||n==2)return 1; else if(n==…… 题解列表 2019年01月11日 0 点赞 0 评论 1632 浏览 评分:9.9
蓝桥杯算法提高VIP-数字黑洞 (C++代码) 摘要:解题思路:(1)输入一个整数,然后拆分成4个数字;(2)排序,再重新组合成最大值和最小值,然后求他们之差;(3)循环比较是否等于6174即可,注意有一个计数变量。参考代码:#include <bits…… 题解列表 2019年01月12日 0 点赞 0 评论 563 浏览 评分:0.0
蓝桥杯算法提高VIP-班级排名 (C++代码) 摘要:解题思路:看清楚题目,哎,总分排名。注意事项:参考代码:#include <bits/stdc++.h> using namespace std; typedef struct { int …… 题解列表 2019年01月12日 0 点赞 0 评论 1022 浏览 评分:0.0