题解列表
编写题解 2071: [STL训练]壮志难酬
摘要:解题思路:注意事项:参考代码:n=int(input())
for i in range(n):
a,b=map(str,input().split())
print(a[a.f……
编写题解 2073: [STL训练]亲和串
摘要:解题思路:注意事项:参考代码:while True:
try:
a=input().strip()
b=input().strip()
……
明明的随机数——C语言代码
摘要:####解题思路
先去重,再排序
####注意事项
去重时下标要后退一位,防止三个重复数字!!!
- #### 代码如下
```c
#include
int main()
……
01背包问题 动态规划
摘要:```cpp
#include
using namespace std;
const int L = 5000 + 50;
int n, m;
int v[L], w[L];
int dp……
蓝桥杯算法提高VIP-数字黑洞
摘要:#include<iostream>#include<algorithm>using namespace std;int cnt=0;int fun(int n){ int sum[4]; ……