2151活动选择 简单贪心算法(注释很详细) 注意:根据样例可知,前一个活动的结束时间可以与后一个活动的开始时间重合//贪心规则:在完成当前的活动后,礼堂选取结束时间早的活动作为下一个活动//结束时间早,意味着等待时间与活动时间加起来短#includeusingnamespacestd;pair 题解列表 2023年01月06日 1 点赞 0 评论 746 浏览 评分: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 评论 1132 浏览 评分: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 评论 505 浏览 评分:0.0 蓝桥杯基础练习VIP-字符串对比(C语言) 摘要:#include<stdio.h> #include<ctype.h>//tolower函数引用所需的头文件 #include<string.h> int main() { char st…… 题解列表 2023年01月06日 0 点赞 0 评论 508 浏览 评分: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 评论 486 浏览 评分:9.9 蓝桥杯算法提高VIP-Quadratic Equation 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a,b,c,x1,x2; scanf("%lf…… 题解列表 2023年01月06日 0 点赞 0 评论 519 浏览 评分:0.0 二级C语言-求偶数和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,sum=0,a[100]; scanf("%d",&n); for(i=0;i<n;i++)sc…… 题解列表 2023年01月06日 0 点赞 0 评论 498 浏览 评分:9.9 舍罕王的失算 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int main(){ unsigned long long …… 题解列表 2023年01月06日 0 点赞 0 评论 543 浏览 评分:0.0 自由落体问题 摘要:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int i,n; float s=100,m=100; …… 题解列表 2023年01月06日 0 点赞 0 评论 427 浏览 评分:0.0 数据结构-字符串连接(C语言) 摘要:#include<stdio.h> #include<string.h> int main() { char str1[100],arr1[100]; char str2[100], a…… 题解列表 2023年01月06日 0 点赞 0 评论 576 浏览 评分:0.0 « 12...1644164516461647164816491650...59115912 »
简单的思路 摘要:解题思路:注意事项:参考代码:#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 评论 1132 浏览 评分: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 评论 505 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比(C语言) 摘要:#include<stdio.h> #include<ctype.h>//tolower函数引用所需的头文件 #include<string.h> int main() { char st…… 题解列表 2023年01月06日 0 点赞 0 评论 508 浏览 评分: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 评论 486 浏览 评分:9.9
蓝桥杯算法提高VIP-Quadratic Equation 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a,b,c,x1,x2; scanf("%lf…… 题解列表 2023年01月06日 0 点赞 0 评论 519 浏览 评分:0.0
二级C语言-求偶数和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,sum=0,a[100]; scanf("%d",&n); for(i=0;i<n;i++)sc…… 题解列表 2023年01月06日 0 点赞 0 评论 498 浏览 评分:9.9
舍罕王的失算 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int main(){ unsigned long long …… 题解列表 2023年01月06日 0 点赞 0 评论 543 浏览 评分:0.0
自由落体问题 摘要:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int i,n; float s=100,m=100; …… 题解列表 2023年01月06日 0 点赞 0 评论 427 浏览 评分:0.0
数据结构-字符串连接(C语言) 摘要:#include<stdio.h> #include<string.h> int main() { char str1[100],arr1[100]; char str2[100], a…… 题解列表 2023年01月06日 0 点赞 0 评论 576 浏览 评分:0.0