题解列表
2875: 回文子串
摘要:```cpp
#include
#include
using namespace std;
bool dp[500][500];
int main()
{
char s[500]……
1214: 恺撒密码
摘要:```cpp
#include
using namespace std;
int main()
{
string str;
while(getline(cin,str))
……
1215: 愚蠢的摄影师
摘要:```cpp
#include
using namespace std;
int main()
{
int N,A[55]={1,1,2};
for(int i=3;i>N……
2254: 蓝桥杯算法提高-奥运会开幕式
摘要:```cpp
#include
using namespace std;
int main()
{
int n,m,p=0;
cin>>n>>m;
for(int……
1216: 成绩转换
摘要:```cpp
#include
using namespace std;
int main()
{
int n;
while(cin>>n)
switch(n/……
【Python解法】A+B+C+D
摘要:#### 思路:
隔板法,即往 `e-1` 个间隔中放入3个隔板,因此结果为:
$$\large \tbinom{e-1}{3}=\frac{(e-1)(e-2)(e-3)}{3!}$$
……
2915: 接水问题
摘要:```cpp
#include
using namespace std;
int main()
{
int n,m,w[10000],x[10000],s=1,max=0;
……
2923: 病人排队
摘要:```cpp
#include
using namespace std;
typedef struct a
{
char m[20];
int age;
}T;
int……