编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int n,sum,a; cin>>n; int list[100]…… 题解列表 2023年01月06日 0 点赞 0 评论 429 浏览 评分:0.0
角谷猜想(C++简单版本) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int n,n1,n2; cin…… 题解列表 2023年01月06日 0 点赞 0 评论 521 浏览 评分:0.0
2152整数区间 简单贪心算法(注释很详细) 摘要: 先说改进版:在第二个for循环做了一点剪枝提升性能//贪心规则:每次都在最早出现的右端点处取一点加入集合中 /*取点之后向左扫描左端点,扫到的就判断该区间的右端点是否在该点右边 如果在的话…… 题解列表 2023年01月06日 0 点赞 0 评论 651 浏览 评分:9.9
思维题-只需考虑三种情况 超级简单且明了! 摘要:解题思路:"""没有负号: 答案就是所有数的和有负号: 只要正数和负数搭配答案就是所有的数绝对值的和 纯正数和纯负数分开考虑"""注意事项:"" 题解列表 2023年01月06日 0 点赞 0 评论 567 浏览 评分:0.0
比较字符串(C语言) 摘要:#include<stdio.h> #include<string.h> int main() { char s1[100], s2[100]; char* p1 = s1, * p2 …… 题解列表 2023年01月06日 0 点赞 0 评论 478 浏览 评分:0.0
2151活动选择 简单贪心算法(注释很详细) 注意:根据样例可知,前一个活动的结束时间可以与后一个活动的开始时间重合//贪心规则:在完成当前的活动后,礼堂选取结束时间早的活动作为下一个活动//结束时间早,意味着等待时间与活动时间加起来短#includeusingnamespacestd;pair 题解列表 2023年01月06日 1 点赞 0 评论 743 浏览 评分:9.9 简单的思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,t,s=0; scanf("%d %d",&m,&n); if(m>n){ t=n; …… 题解列表 2023年01月06日 0 点赞 0 评论 1131 浏览 评分:9.9 字符串输入输出函数(C语言) 摘要:#include<stdio.h> void fun(float a, char str[]) { char* p = str; float* q = &a; printf("plea…… 题解列表 2023年01月06日 0 点赞 0 评论 499 浏览 评分:0.0 蓝桥杯基础练习VIP-字符串对比(C语言) 摘要:#include<stdio.h> #include<ctype.h>//tolower函数引用所需的头文件 #include<string.h> int main() { char st…… 题解列表 2023年01月06日 0 点赞 0 评论 504 浏览 评分:0.0 1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c,i; double sum=0; scanf("%d%d%d…… 题解列表 2023年01月06日 0 点赞 0 评论 484 浏览 评分:9.9 « 12...1642164316441645164616471648...59095910 »
简单的思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,t,s=0; scanf("%d %d",&m,&n); if(m>n){ t=n; …… 题解列表 2023年01月06日 0 点赞 0 评论 1131 浏览 评分:9.9
字符串输入输出函数(C语言) 摘要:#include<stdio.h> void fun(float a, char str[]) { char* p = str; float* q = &a; printf("plea…… 题解列表 2023年01月06日 0 点赞 0 评论 499 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比(C语言) 摘要:#include<stdio.h> #include<ctype.h>//tolower函数引用所需的头文件 #include<string.h> int main() { char st…… 题解列表 2023年01月06日 0 点赞 0 评论 504 浏览 评分:0.0
1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c,i; double sum=0; scanf("%d%d%d…… 题解列表 2023年01月06日 0 点赞 0 评论 484 浏览 评分:9.9