2865: 紧急措施 摘要:解题思路:注意事项:strip有神奇的魔力参考代码:email = input().strip() N = int(input()) arr = [] for i in range(N): …… 题解列表 2024年03月25日 0 点赞 0 评论 796 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python def partition(li): key = li[0] new_li = [] # 从左找比key小的 for i in li[::-1…… 题解列表 2024年03月25日 0 点赞 0 评论 450 浏览 评分:0.0
C语言:switch语句 摘要:解题思路: 直接利用switch语句来实现注意事项:参考代码:#include<stdio.h>int main(){ int a,d; scanf("%d",&a); switch…… 题解列表 2024年03月25日 0 点赞 0 评论 244 浏览 评分:0.0
2866: 过滤多余的空格 摘要:解题思路: 注意事项:参考代码:print(" ".join(input().split()))…… 题解列表 2024年03月25日 0 点赞 0 评论 421 浏览 评分:0.0
2864: 单词替换 摘要:解题思路:注意事项:参考代码:s = input().strip().split() s1 = input().strip() s2 = input().strip() a = [s2 if i…… 题解列表 2024年03月25日 0 点赞 1 评论 196 浏览 评分:0.0
2863: 删除单词后缀 摘要:解题思路:注意事项:参考代码:s = input() if 'er' in s[-2:] or 'ly' in s[-2:]: print(s[0:-2])…… 题解列表 2024年03月25日 0 点赞 0 评论 397 浏览 评分:0.0
2665: 蓝桥杯2022年-选数异或(异或性质+动态规划) 摘要:```cpp #include #include using namespace std; typedef long long LL; const int N=1e5 + 10; /*…… 题解列表 2024年03月25日 0 点赞 0 评论 540 浏览 评分:0.0
2862: 字符串移位包含问题 摘要:解题思路:注意事项:自己看下面的数据测试数据:1.AABCD CDAA2.AABCDCDAA参考代码:s = input().split() if len(s) == 2: count =…… 题解列表 2024年03月25日 0 点赞 3 评论 296 浏览 评分:9.9
2861: 验证子串 摘要:解题思路:注意事项:谁看得出来下面的数据有什么区别?测试数据:1.abcdddncabca2.abc dddncabca参考代码:s1 = "".join(input().split()) s2 =…… 题解列表 2024年03月25日 0 点赞 1 评论 514 浏览 评分:0.0
2860: 字符串判等 摘要:解题思路:注意事项:参考代码:s1 = "".join(input().lower().split()) s2 = "".join(input().lower().split()) if s1 =…… 题解列表 2024年03月25日 0 点赞 0 评论 267 浏览 评分:9.9