题解列表

筛选

60行代码!!!

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

完美数的判断

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

罗列完美数

摘要:解题思路:注意事项:参考代码:#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 a[5][5],sum=0,sum1=0;  ……

星期判断机

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

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

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

动态规划(DP) 初学

摘要:初学DP,可能有很多不恰当的地方 ```cpp ```cpp #include using namespace std; int c[35]; int dp[35][20005]; in……

2846: 统计数字字符个数Java

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main {    public static void main(String[] args……