蓝桥杯算法提高VIP-计算器-题解(C++代码)--思路简单 摘要:解题思路:很简单看7根灯管的变化就行了;参考代码:#include<bits/stdc++.h> using namespace std; struct lig { int u, d, lu…… 题解列表 2020年08月04日 0 点赞 0 评论 1140 浏览 评分:9.9
蓝桥杯2013年第四届真题-核桃的数量-题解(C++代码) 摘要:解题思路:最小公倍数参考代码:#include<bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> …… 题解列表 2020年08月04日 0 点赞 0 评论 669 浏览 评分:9.9
求中间数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int a,b,c,t; scanf("%d%d%d",&a,&b,&c); if(a>b&&a>c) …… 题解列表 2020年08月05日 0 点赞 1 评论 2216 浏览 评分:9.9
输出M到N的数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int m,n,i; scanf("%d%d",&m,&n); if(m<n) { for(i=m+1…… 题解列表 2020年08月05日 0 点赞 0 评论 711 浏览 评分:9.9
信息学奥赛一本通T1267-01背包问题-题解(C语言代码) 摘要:```c #include int max(int x,int y) { if(x>y)return x; else return y; } int main()//注意一点,该…… 题解列表 2020年08月05日 0 点赞 0 评论 1326 浏览 评分:9.9
蓝桥杯算法训练VIP-黑色星期五-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; #define rn(y) (((y%4==0)&&(y%100!=0))|…… 题解列表 2020年08月05日 0 点赞 0 评论 923 浏览 评分:9.9
蓝桥杯算法提高VIP-身份证号码升级-题解(C++代码) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int x[17] = { 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, …… 题解列表 2020年08月05日 0 点赞 0 评论 1174 浏览 评分:9.9
蓝桥杯算法训练-数据交换-题解(C++代码) 摘要:解题思路:注意事项:将swap函数的参数改为引用&参考代码:#include<iostream>using namespace std;void swap(int &a, int &b) { …… 题解列表 2020年08月05日 0 点赞 0 评论 725 浏览 评分:9.9
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:解题思路:按正常思路,利用数组解决最简易,但用scanf输入需要逐字输入,这里可以用getchar字符输入无缓冲特性,当用enter确认,结束循环注意事项:循环里需要用其他常量计算位数,之后的输出中需…… 题解列表 2020年08月05日 0 点赞 0 评论 1602 浏览 评分:9.9
蓝桥杯2015年第六届真题-移动距离-题解(C++代码)by Zfans 摘要:```cpp /*移动距离 X星球居民小区的楼房全是一样的,并且按矩阵样式排列。其楼房的编号为1,2,3... 当排满一行时,从下一行相邻的楼往反方向排号。 比如:当小区排号宽度为6时,开…… 题解列表 2020年08月05日 0 点赞 0 评论 933 浏览 评分:9.9