二级C语言-公约公倍 摘要:```cpp #include using namespace std; int main() { int a,b,m,n,r; cin>>m>>n; a=m;…… 题解列表 2022年08月15日 0 点赞 0 评论 685 浏览 评分:9.9
特殊排序(容器) 摘要:#include<iostream> using namespace std; #include<vector> #include<algorithm> int main() { int…… 题解列表 2022年08月15日 0 点赞 0 评论 236 浏览 评分:0.0
成绩排序(容器) 摘要:#include<iostream> using namespace std; #include<vector> #include<string> #include<algorithm> c…… 题解列表 2022年08月15日 0 点赞 0 评论 150 浏览 评分:0.0
[编程入门]结构体之成绩统计2 新手简单易懂版本 摘要:```cpp #include #include using namespace std; struct Student { string xuehao; string xingmi…… 题解列表 2022年08月15日 0 点赞 0 评论 320 浏览 评分:9.9
二级C语言-计负均正 摘要:```cpp #include #include using namespace std; int main() { int a[21],as=0,bs=0,bss=0; …… 题解列表 2022年08月15日 0 点赞 0 评论 645 浏览 评分:9.9
二级C语言-分段函数 摘要:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ double x; cin>>x; i…… 题解列表 2022年08月15日 0 点赞 0 评论 557 浏览 评分:9.9
题目 1022: [编程入门]筛选N以内的素数 摘要:解法:线性筛 时间复杂度:$$O(n)$$ ```cpp #include using namespace std; int n, prime[1005], st[1005], k = 0;…… 题解列表 2022年08月14日 0 点赞 0 评论 364 浏览 评分:9.9
C\C++就是求第二最大和的问题 耗时1 摘要:解题思路:是自己挑一部分数字求第二最大。所以如果全是负数那么最大就是什么都不挑。第二大就是0+最大的负数注意事项:没什么特别需要注意的想用c提交就把 &和const去掉参考代码:#include<st…… 题解列表 2022年08月14日 0 点赞 0 评论 270 浏览 评分:0.0
十->二进制转换常规算法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int pa;while(cin>>pa){ //如何判断输…… 题解列表 2022年08月14日 0 点赞 0 评论 211 浏览 评分:0.0
数字三角形 摘要:解题思路:DFS注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int n,a[30][30],ans = -1;void dfs(int …… 题解列表 2022年08月13日 0 点赞 0 评论 422 浏览 评分:9.9