题解列表

筛选

双循环遍历

摘要:# 纯纯打表 ```c++ #include #include using namespace std; char str[10000]; int f[26]; int main() ……

1049: [编程入门]结构体之时间设计

摘要:解题思路:题目主要要搞清楚什么是闰年,什么是平年,然后闰年每个月有多少天,平年每个月有多少天。注意事项:参考代码:#include <bits/stdc++.h> using namespace s……

2869: 字符串最大跨距

摘要:解题思路:注意事项:(≖͞_≖̥)参考代码:#include<iostream>#include<algorithm>#include<string.h>#include<string>using n……

动态规划(DP) 初学

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

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

摘要:解题思路:注意事项:参考代码:#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……