【Python题解】蓝桥杯算法提高VIP-删除重复元素 摘要:解题思路:利用列表的copy()和remove()方法。参考代码:s = list(input()) for i in s: temp = s.copy() temp.remov…… 题解列表 2023年01月10日 0 点赞 0 评论 325 浏览 评分:9.9
2847: 找第一个只出现一次的字符 摘要:```cpp #include #include using namespace std; int main() { char ch[1000000],letter[26],let…… 题解列表 2023年01月10日 0 点赞 0 评论 549 浏览 评分:9.9
2177: 信息学奥赛一本通T1252-走迷宫 摘要:```cpp #include #include using namespace std; const int S=41; struct node { int x,y,l; }…… 题解列表 2023年01月10日 0 点赞 0 评论 362 浏览 评分:9.9
【Python题解】Poker排序 摘要:解题思路:利用列表的 list.sort(key=(lambda)) 方法,具体见代码注释。参考代码:s = input().replace('10', 't') #…… 题解列表 2023年01月10日 0 点赞 0 评论 409 浏览 评分:9.9
蓝桥杯算法训练VIP-字符串编辑-python 摘要:解题思路:注意事项:参考代码:def Delete(s,arg): try: index=s.index(arg) string1=s[0:index] …… 题解列表 2023年01月10日 0 点赞 0 评论 333 浏览 评分:0.0
2923: 病人排队 摘要:```cpp #include using namespace std; typedef struct a { char m[20]; int age; }T; int…… 题解列表 2023年01月10日 0 点赞 0 评论 467 浏览 评分:9.9
2915: 接水问题 摘要:```cpp #include using namespace std; int main() { int n,m,w[10000],x[10000],s=1,max=0; …… 题解列表 2023年01月10日 0 点赞 1 评论 362 浏览 评分:7.3
【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 评论 349 浏览 评分:9.9
1217: 换位置 摘要:```cpp #include using namespace std; int main() { int n,i; cin>>n; while(n--) {…… 题解列表 2023年01月10日 0 点赞 0 评论 466 浏览 评分:9.9
1216: 成绩转换 摘要:```cpp #include using namespace std; int main() { int n; while(cin>>n) switch(n/…… 题解列表 2023年01月10日 0 点赞 0 评论 502 浏览 评分:9.9