最多约数问题 (C++代码) 摘要:解题思路:首先,考虑如何求解一个数有多少个约数,1的约数只有1个,其他的数字,对其进行质因数分解可以得到 a = b1^c1 * b2^c2 * b3^c3 * ....如下结果,根据排列组合原理可以…… 题解列表 2018年05月30日 11 点赞 1 评论 2216 浏览 评分:6.8
【蟠桃记】 (C语言代码) 摘要:#include<stdio.h> int main() { int i,j,n,a[31]; while(~scanf("%d",&n)) { a[n]=1; for(i…… 题解列表 2018年06月11日 0 点赞 0 评论 1608 浏览 评分:6.8
程序员的表白 (C语言代码) 摘要:#include "stdafx.h" //答案不通过????void fun(int n){ char a[200][200] = { 0 }; int i, …… 题解列表 2018年10月26日 0 点赞 1 评论 4558 浏览 评分:6.8
蓝桥杯算法提高VIP-最大乘积 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int c[20];void paixu(int b[], int n){ int i, j, t…… 题解列表 2018年11月06日 2 点赞 2 评论 1394 浏览 评分:6.8
蓝桥杯2014年第五届真题-套娃 (C++代码) 摘要:解题思路:并查集吧为毛超时啊??最强召唤魔法,地表最强召唤兽~@地表最强召唤兽注意事项:参考代码:#include <iostream> #include <stdio.h> #include <…… 题解列表 2018年12月13日 1 点赞 5 评论 1323 浏览 评分:6.8
优质题解 高精度加法-小妙招 (C/C++语言代码) 摘要:声明:本文引自一篇优质题解:ACM基本输入输出之大数加法编译环境:Windows China HuaWei source Insight 4.0Linux Debain Ubuntu/Kali g++…… 题解列表 2019年01月06日 7 点赞 2 评论 1877 浏览 评分:6.8
蓝桥杯算法训练VIP-新生舞会 (C++代码) 摘要:解题思路: 按照题目意思,根据题目给出的函数完成相应的功能即可。参考代码:#include<iostream> #include<cstring> using namespace std;…… 题解列表 2019年01月28日 1 点赞 0 评论 1430 浏览 评分:6.8
蓝桥杯算法提高VIP-盾神与砝码称重 (C++代码) 摘要:解题思路: 可以用DFS实现。天平两边都可以放砝码。所以砝码有三种状态。 定义一个函数:bool opt(int n,int total,int w) 其中:n表示剩余砝码个数,to…… 题解列表 2019年01月28日 2 点赞 0 评论 1867 浏览 评分:6.8
。。计算数字个数 (C语言代码)比较经典的方法。 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n=0; char ch; while((ch=getchar())!=EOF) …… 题解列表 2019年02月05日 1 点赞 2 评论 1823 浏览 评分:6.8
陈教主的三角形 (C语言代码)这奇葩的正确率是什么鬼。。你们是认真的么?? 摘要:解题思路:小学知识,平面内,一切三角形任意两边之和大于第三边(不能等于!!)注意事项:无。。。参考代码:#include<stdio.h>int main(){ int a,b,c; while(sc…… 题解列表 2019年04月19日 0 点赞 6 评论 778 浏览 评分:6.8