题解列表
暴力画矩形 【简单易懂】
摘要:#include <iostream>
#include <cmath>
using namespace std;
/*
画矩形
*/
int main()
{
// ……
最长单词2,简单方法
摘要:解题思路:从找到第一个字母开始计数,并记录位置,直到找到空格或者‘。’,不断更新注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef……
字串简写——前缀和+回溯
摘要:#include<bits/stdc++.h>#include<cstdio> #include<cstring>using namespace std;typedef long long LL;LL……
简单的暴力解决冶炼金属问题
摘要:解题思路:最大转化率就是min(金属O/金属X),只需遍历求出最大转化率,然后对最大转换率依次做减一操作评判是否满足即可注意事项:参考代码:#include<iostream>#include<vec……
蓝桥杯历届试题-翻硬币(贪心)
摘要:#include <iostream>
#include <cstring>
using namespace std;
const int N = 110;
int n;
char ……
T1457Power Strings--KMP
摘要:```cpp
#include
#include
#include
using namespace std;
const int N=1e6+100;
char str[N];
i……