指针/引用练习之交换数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void swap(int &a,int &b){ int *p=&a,*q=&b;…… 题解列表 2023年05月07日 0 点赞 0 评论 409 浏览 评分:0.0
星期判断机 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; switch…… 题解列表 2023年05月07日 0 点赞 0 评论 379 浏览 评分:0.0
矩阵的对角线之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[5][5],sum=0,sum1=0; …… 题解列表 2023年05月07日 0 点赞 0 评论 454 浏览 评分:0.0
罗列完美数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int wanmei(int n){ int sum=0; for(in…… 题解列表 2023年05月07日 0 点赞 0 评论 431 浏览 评分:0.0
完美数的判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int x,sum=0; cin>>x; …… 题解列表 2023年05月07日 0 点赞 0 评论 355 浏览 评分:0.0
60行代码!!! 摘要:解题思路:1.先创建p,q两个链表数组(我也不知道叫什么,随便取的,大佬勿喷) 2.输入数据 3.合并数组(为了后面的排序) &nbs 题解列表 2023年05月07日 0 点赞 0 评论 338 浏览 评分:0.0
1319: 没有上司的晚会 摘要:```cpp #include #include using namespace std; const int maxn=6001; int n,dp[maxn][2],hap[maxn];…… 题解列表 2023年05月06日 0 点赞 0 评论 521 浏览 评分:9.9
2233: 蓝桥杯算法训练-图形显示(c++代码) 摘要:解题思路:通过倒序循环来完成“*”和“ ”的输出;注意事项:空格和换行不要忘了哦参考代码:#include<iostream>using namespace std;int main(){ in…… 题解列表 2023年05月06日 0 点赞 0 评论 375 浏览 评分:9.9
题解 1001: [编程入门]第一个HelloWorld程序(消磨时间) 摘要:# 我就是在消磨时间!!!!! 如果程序报错,就是空格呀,符号个数呀,所以我认为最好复制,还省时间。  { …… 题解列表 2023年05月06日 0 点赞 0 评论 483 浏览 评分:9.9