题解列表

筛选

haoxiang没人写过

摘要:解题思路:注意事项:参考代码:l=list(input().split())p=0for i in l:    i=i[::-1]    if p==0:        print(i,end=&#3……

指针/引用练习之交换数字

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void swap(int &a,int &b){ int *p=&a,*q=&b;……

星期判断机

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int n;    cin>>n;    switch……

矩阵的对角线之和

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int a[5][5],sum=0,sum1=0;  ……

罗列完美数

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int wanmei(int n){    int sum=0;    for(in……

完美数的判断

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int x,sum=0;    cin>>x;    ……

java实现链表升序合并

摘要:解题思路: 1.用输入的数据创建好两个链表。2.将两个无序链表合并成一个链表:用一个变量记录链表1的尾结点,使其下个节点指向链表2。3. 对合并后的链表进行排序:排序采取排序算法中的归并排序。个人认为……

60行代码!!!

摘要:解题思路:1.先创建p,q两个链表数组(我也不知道叫什么,随便取的,大佬勿喷)               2.输入数据               3.合并数组(为了后面的排序)   &nbs