1446: 蓝桥杯2013年第四届真题-核桃的数量 摘要: $$GCD(A,B)\times LCM(A,B)=A\times B$$ ```cpp #include using namespace std; // 最大公约数 int GCD(…… 题解列表 2023年12月09日 2 点赞 0 评论 458 浏览 评分:10.0
这标题有病敏感啥 摘要:解题思路:注意事项:参考代码:#include<string>using namespace std;int main(){ int a,b,c=0; cin>>a>&g…… 题解列表 2025年02月02日 1 点赞 0 评论 405 浏览 评分:10.0
核桃的数量 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a,b,c,i,max,min; scanf("%d %d %d",&a,&b,&c); …… 题解列表 2017年10月17日 0 点赞 0 评论 1600 浏览 评分:9.9
核桃的数量 (C语言代码) 摘要:解题思路:就是找3个数的公倍数注意事项:参考代码:#include<stdio.h>void main(){int a,b,c,i;scanf("%d%d%d",&a,&b,&c);for(i=1;;…… 题解列表 2017年12月04日 0 点赞 0 评论 1694 浏览 评分:9.9
蓝桥杯历届试题-核桃的数量 (C++代码) 摘要:#include<iostream>using namespace std;int main(){ int a,b,c,d; while(cin>>a>>b>>c){ d=0…… 题解列表 2017年12月13日 2 点赞 0 评论 1543 浏览 评分:9.9
优质题解 蓝桥杯2013年第四届真题-核桃的数量 (C语言代码) 摘要:解题思路:本题要求: 各组的核桃数量必须相同 2. 各组内必须能平分核桃(当然是不能打碎的) 3. 尽量提供满足1,2条件的最小数量(节约闹革命嘛) 注意事项:综上所述知本题的实质是求三个数的最…… 题解列表 2019年01月19日 1 点赞 1 评论 1344 浏览 评分:9.9
蓝桥杯2013年第四届真题-核桃的数量 (C++代码)by Zfans. 摘要:```cpp #include using namespace std; int main() { int a, b, c; cin >> a >> b >> c; …… 题解列表 2019年08月06日 0 点赞 0 评论 1159 浏览 评分:9.9
蓝桥杯2013年第四届真题-核桃的数量-题解(Python代码) 摘要:枚举出所有符合条件的值 找出最小值 ```python a,b,c=map(int,input().split()) list=[] if a…… 题解列表 2019年12月01日 0 点赞 2 评论 1811 浏览 评分:9.9
蓝桥杯2013年第四届真题-核桃的数量-题解(C语言代码) 摘要:解题思路: 其实就是求最小公倍数。我用的是蛮力法求解。 参考代码: ```c #include int main() { int i,a,b,c; scanf("%d %d %…… 题解列表 2019年12月18日 0 点赞 0 评论 1310 浏览 评分:9.9
蓝桥杯2013年第四届真题-核桃的数量-题解(Java代码) 摘要:先用数组去将3个组的人数做一个存值,那么我们分核桃首先要满足的是组里每个人都有核桃,所以排序后将循环的初始值设为最大的人数,从而减少循环的次数,接着我们需要满足每个组的核桃都要被均分,这样结果就出来了…… 题解列表 2020年01月08日 0 点赞 0 评论 1488 浏览 评分:9.9