题解列表
1175金明的预算方案(dp动态规划,一维数组)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define MAX 10100int N, m;int dp[MAX];int arr[……
1177三角形(经典的树塔问题)
摘要:解题思路:从下往上寻找最大值,可以说是递推的入门题注意事项:参考代码:#include<iostream>using namespace std;int main(){ int T; cin >> T……
2950: 素数回文数的个数
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll prime (ll x){ ……
用VS来写结构体数组并排序
摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <malloc.h>struct _node{ int……
2236: 蓝桥杯算法训练-大小写转换
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char ……
解 2846: 统计数字字符
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char a[1005];int main(){ int sum=0; cin.g……
2846: 统计数字字符个数
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e5;char a[N];int main(){ ……
机器人繁殖(C语言)——别用long!不然时间也很long。
摘要:解题思路:第一种思路:把这看做一道数学题,写出通项找规律,直接得到公式。在下数学不好,想了想就转战第二种思路了。第二种思路:利用计算机的能力,遍历第一年的机器人数量,依据题意得出n年后的数量,比较后得……