指针/引用练习之交换数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void swap(int &a,int &b){ int *p=&a,*q=&b;…… 题解列表 2023年05月07日 0 点赞 0 评论 527 浏览 评分:0.0
星期判断机 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; switch…… 题解列表 2023年05月07日 0 点赞 0 评论 496 浏览 评分:0.0
矩阵的对角线之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[5][5],sum=0,sum1=0; …… 题解列表 2023年05月07日 0 点赞 0 评论 597 浏览 评分:0.0
罗列完美数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int wanmei(int n){ int sum=0; for(in…… 题解列表 2023年05月07日 0 点赞 0 评论 550 浏览 评分:0.0
完美数的判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int x,sum=0; cin>>x; …… 题解列表 2023年05月07日 0 点赞 0 评论 457 浏览 评分:0.0
60行代码!!! 摘要:解题思路:1.先创建p,q两个链表数组(我也不知道叫什么,随便取的,大佬勿喷) 2.输入数据 3.合并数组(为了后面的排序) &nbs 题解列表 2023年05月07日 0 点赞 0 评论 438 浏览 评分:0.0
1319: 没有上司的晚会 ```cpp#include#includeusingnamespacestd;constintmaxn=6001;intn,dp[maxn][2],hap[maxn];boolno_head[maxn];vectordown[maxn];intdfs(intnow, 题解列表 2023年05月06日 0 点赞 0 评论 639 浏览 评分:9.9
2233: 蓝桥杯算法训练-图形显示(c++代码) 摘要:解题思路:通过倒序循环来完成“*”和“ ”的输出;注意事项:空格和换行不要忘了哦参考代码:#include<iostream>using namespace std;int main(){ in…… 题解列表 2023年05月06日 0 点赞 0 评论 476 浏览 评分:9.9
题解 1001: [编程入门]第一个HelloWorld程序(消磨时间) #我就是在消磨时间!!!!!如果程序报错,就是空格呀,符号个数呀,所以我认为最好复制,还省时间。通过率才39%,你们一定是细节没处理好不然你们不会点开题解的。 题解列表 2023年05月06日 0 点赞 0 评论 496 浏览 评分:9.9
题解 1129: C语言训练-排序问题 直接上代码!!!!!!!!!!!!!!!!!!!!!!```cpp#include//万能头usingnamespacestd;boolcmp(inta,intb){returna>b;}intmain(){inta[10];for(inti=0;i<10;i++){cin>>a[i];}sort(a 题解列表 2023年05月06日 0 点赞 0 评论 612 浏览 评分:9.9