题解列表
1049: [编程入门]结构体之时间设计
摘要:解题思路:题目主要要搞清楚什么是闰年,什么是平年,然后闰年每个月有多少天,平年每个月有多少天。注意事项:参考代码:#include <bits/stdc++.h>
using namespace s……
2869: 字符串最大跨距
摘要:解题思路:注意事项:(≖͞_≖̥)参考代码:#include<iostream>#include<algorithm>#include<string.h>#include<string>using n……
编写题解 1503: 蓝桥杯算法提高VIP-前10名
摘要:```c++
#include
using namespace std;
void Sort(int*nums,int n)
{
for(int i = 0;inums[i];
……
动态规划(DP) 初学
摘要:初学DP,可能有很多不恰当的地方
```cpp
```cpp
#include
using namespace std;
int c[35];
int dp[35][20005];
in……
蓝桥杯2023年第十四届省赛真题-冶炼金属—二分算法
摘要:解题思路:求最大值和最小值,可以考虑二分注意事项:参考代码:#include<iostream>using namespace std;long long a[10005][3],n;int chec……
指针/引用练习之交换数字
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void swap(int &a,int &b){ int *p=&a,*q=&b;……