1025: [编程入门]数组插入处理 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int ls[9],num[10],k,flag=0,i; for(i=0;i<9;i++){ …… 题解列表 2022年06月10日 0 点赞 0 评论 222 浏览 评分:0.0
1026: [编程入门]数字逆序输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int ls[10],i; for(i=0;i<10;i++){ scanf("%d",&l…… 题解列表 2022年06月10日 0 点赞 0 评论 323 浏览 评分:0.0
1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int lcd(int x,int y){ return x%y==0?y:lcd(y,x%y); } int mai…… 题解列表 2022年06月10日 0 点赞 0 评论 372 浏览 评分:0.0
1030: [编程入门]二维数组的转置(不需用二维数组) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define ch(a,b) a^=b,b^=a,a^=b; int main() { int i,ls[9]; for(…… 题解列表 2022年06月10日 0 点赞 0 评论 308 浏览 评分:0.0
1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n,flag; scanf("%d",&n); if(n<10){ if(n==2…… 题解列表 2022年06月10日 0 点赞 0 评论 273 浏览 评分:0.0
生日日数——python 摘要:解题思路:注意事项:参考代码:def f(year1): if (year1 % 100 != 0 and year1 % 4 == 0) or year1 % 400 == 0: …… 题解列表 2022年06月10日 0 点赞 0 评论 351 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#includeint main() { char ch[265],c; int i=0; while((c=getchar())!=EOF){ if(c…… 题解列表 2022年06月10日 0 点赞 0 评论 304 浏览 评分:0.0
蓝桥杯2019年第十届国赛真题-最长子序列 摘要:```cpp #include using namespace std; int main() { string s,t; cin>>s>>t; int ps=0,pt=…… 题解列表 2022年06月10日 0 点赞 0 评论 474 浏览 评分:0.0
地宫取宝 -- DP 摘要:解题思路:dp[x][y][num][maxValue] 为走到坐标(x, y)时, 不同行走方案总数的最优值(最大值), num为背包中的物品总数, maxValue为背包单个物品最大的价值。此时…… 题解列表 2022年06月10日 0 点赞 0 评论 360 浏览 评分:0.0
前缀和思想 摘要:注意事项: if(ans < 0) ans = 0; //当ans<0时,如果继续包括前边子矩阵,结果肯定是减小的,所以直接舍弃前边子矩阵参考代码:#include using names…… 题解列表 2022年06月10日 0 点赞 0 评论 480 浏览 评分:0.0