c++ STL解法,用上vector容器,sort函数 摘要:#include<iostream> #include<vector> #include<algorithm> using namespace std; bool cmp(int a,int …… 题解列表 2023年11月05日 0 点赞 0 评论 473 浏览 评分:0.0
2804: 与指定数字相同的数的个数 摘要:``` #include using namespace std; int main(){ int x,k,n,x1=0; cin>>k>>x; for(int i=1; i>n; …… 题解列表 2023年11月05日 0 点赞 0 评论 386 浏览 评分:0.0
2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; double b,c; cin>>n; for…… 题解列表 2023年11月05日 0 点赞 0 评论 454 浏览 评分:0.0
2796: 求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n, b, c = 0; cin>>n; for(i…… 题解列表 2023年11月05日 0 点赞 0 评论 544 浏览 评分:0.0
甲流疫情死亡率 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdbool.h>int main(){ int a,b; double c; scanf("%d%d", &a, …… 题解列表 2023年11月05日 0 点赞 0 评论 795 浏览 评分:0.0
1003c语言代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char c1,c2,c3,c4,c5; scanf("%c%c%c%c%c",&c1,&c2,&c3,&c4…… 题解列表 2023年11月05日 0 点赞 0 评论 443 浏览 评分:0.0
1005c语言代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ double F,c; scanf("%lf",&F); c=5*(F-32)/9; printf("c=%.…… 题解列表 2023年11月05日 0 点赞 0 评论 476 浏览 评分:0.0
1006c语言代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,max; scanf("%d %d %d",&a,&b,&c); if(a>=b&&a>=…… 题解列表 2023年11月05日 0 点赞 0 评论 422 浏览 评分:0.0
1007c语言代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<1){ y=x; } else if(x>=10…… 题解列表 2023年11月05日 0 点赞 0 评论 402 浏览 评分:0.0
1008c语言代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a; scanf("%d",&a); if(a>=90) printf("A\n"); else if…… 题解列表 2023年11月05日 0 点赞 0 评论 435 浏览 评分:0.0