python解题,清晰易懂 摘要:解题思路:首先判断字符串能否构成回文,回文的本质是对称;1、对于字符个数为偶数的字符串,所有的字母都是成偶数出现的,如果不是,直接输出Impossible2、对于字符个数是奇数的字符串,有且仅有中间的…… 题解列表 2023年01月10日 0 点赞 0 评论 510 浏览 评分:9.9
2834: 与指定数字相同的数的个数 摘要:```cpp #include using namespace std; int main() { int a[100],x,sum=0,n; cin>>n; f…… 题解列表 2023年01月10日 0 点赞 0 评论 592 浏览 评分:9.9
2821: 开关灯 摘要:```cpp #include using namespace std; int a[5001],n,i,j,m; int main() { cin>>n>>m; boo…… 题解列表 2023年01月10日 0 点赞 0 评论 405 浏览 评分:9.9
1214: 恺撒密码 摘要:```cpp #include using namespace std; int main() { string str; while(getline(cin,str))…… 题解列表 2023年01月10日 0 点赞 0 评论 318 浏览 评分:9.9
1215: 愚蠢的摄影师 摘要:```cpp #include using namespace std; int main() { int N,A[55]={1,1,2}; for(int i=3;i>N…… 题解列表 2023年01月10日 0 点赞 0 评论 326 浏览 评分:9.9
2254: 蓝桥杯算法提高-奥运会开幕式 摘要:```cpp #include using namespace std; int main() { int n,m,p=0; cin>>n>>m; for(int…… 题解列表 2023年01月10日 0 点赞 0 评论 248 浏览 评分:9.9
1216: 成绩转换 摘要:```cpp #include using namespace std; int main() { int n; while(cin>>n) switch(n/…… 题解列表 2023年01月10日 0 点赞 0 评论 404 浏览 评分:9.9
1217: 换位置 摘要:```cpp #include using namespace std; int main() { int n,i; cin>>n; while(n--) {…… 题解列表 2023年01月10日 0 点赞 0 评论 387 浏览 评分:9.9
【Python解法】A+B+C+D 摘要:#### 思路: 隔板法,即往 `e-1` 个间隔中放入3个隔板,因此结果为: $$\large \tbinom{e-1}{3}=\frac{(e-1)(e-2)(e-3)}{3!}$$ …… 题解列表 2023年01月10日 0 点赞 0 评论 279 浏览 评分:9.9
2923: 病人排队 摘要:```cpp #include using namespace std; typedef struct a { char m[20]; int age; }T; int…… 题解列表 2023年01月10日 0 点赞 0 评论 366 浏览 评分:9.9