题解列表
2875: 回文子串
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> int main( ){ char s[501]={0}; int n,len,beg……
STL map解法 和为给定数
摘要:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N = 1e7 + 10;ll num[N];ma……
1107: 纪念品分组
摘要:解题思路:动态数组:vector<int>p(n)sort 对数组进行降序排序两重遍历,只要两项加起来小于等于w,就分为一组已分配好的纪念品置成-1(价格不会达到的数)第一重遍历会遇到已经分配好的纪念……
大一新生用C语言编写的
摘要:解题思路:不知道为啥用scanf,printf就不行注意事项:参考代码:#include<stdio.h>#include<string.h>void fanh(char a[]);//函数的声明in……