题解列表
3027: 集合的划分
摘要:```cpp
#include
using namespace std;
long long s(int n,int k) //第十行返回的数值可能会超过int范围,需要用long long……
我很荣幸,将题解发了上来
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;char s[1001];int main(){ int l,n; ci……
1235: 检查金币
摘要:```cpp
#include
#include
#include
using namespace std;
int w,r[10]={1,3,9,27,81,243,729,2187,65……
2175: 信息学奥赛一本通T1250-The Castle
摘要:解题思路:熟练地运用位运算符,并使用广搜进行搜索。不懂可以看这里哦!注意事项:增量顺序不要改!参考代码:#include<bits/stdc++.h>
using namespace std;
i……
2799: 奥运奖牌计数
摘要:```cpp
#include
#include
using namespace std;
int main()
{
int fmax,maxs=0,a[10001],b[1000……
LikeWater - 1114: C语言考试练习题_排列
摘要:#####真该啊这种题目!太烦了这种一定要对准格式的题目,每次都要找题目中的规律然后对着题目的意思写代码,自己写完了但是就是答案错误,我写的时候答案明明对了,但是提交的时候就显示答案错误,然后自己检查……
【Python题解】蓝桥杯基础练习VIP-完美的代价
摘要:# 解题思路
本题利用双指针,其中头指针 `head` 从前向后遍历,尾指针 `tail` 从后向前遍历。
**退出循环的条件:**
1. 字符串长度为偶数,但是有频数为奇数的字母
2. ……
最简单的水仙花数求解方法
摘要:解题思路:注意事项:参考代码:for i in range(2,1000): if i == sum(int(j)**3 for j in str(i)): print(i,end……