2684: 蓝桥杯-数位排序(暴力+重载小于号) 摘要:**在结构体中直接重载小于号可以不用写额外的排序函数,直接调用sort即可** 感觉速度还挺快的,测试数据中时间最长为169ms,但是结构体会比较占内存,最大内存消耗9900KB ```cpp …… 题解列表 2024年03月25日 0 点赞 0 评论 227 浏览 评分:0.0
if语句的简单应用 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;#include <iomanip>int main(){ int child_candie…… 题解列表 2024年03月25日 0 点赞 0 评论 235 浏览 评分:0.0
神奇的fans 判断是否是等差数列 摘要: #include int main() { int n; scanf("%d",&n); while(n--) …… 题解列表 2024年03月25日 0 点赞 0 评论 173 浏览 评分:0.0
1480: 模拟计算器 摘要:# 1480 此题干描述有点小问题,题目描述是除法/,测试用例用的是整除//listA = []while True: try: listA = input().strip().split()…… 题解列表 2024年03月25日 0 点赞 0 评论 282 浏览 评分:0.0
判断一个日期是第几天 摘要: #include int main() { int a,b,c; int day[12]={31,28,31,30,31,30,31,3…… 题解列表 2024年03月25日 0 点赞 0 评论 281 浏览 评分:0.0
2857: 加密的病历单 出题人是不是左右不分? 摘要:解题思路:ASCII码表注意事项:不要超出字母ascii码表的范围参考代码:s = list(input()) for i in range(len(s)): if 'a'…… 题解列表 2024年03月25日 0 点赞 1 评论 184 浏览 评分:0.0
2861: 验证子串 摘要:解题思路:注意事项:谁看得出来下面的数据有什么区别?测试数据:1.abcdddncabca2.abc dddncabca参考代码:s1 = "".join(input().split()) s2 =…… 题解列表 2024年03月25日 0 点赞 1 评论 461 浏览 评分:0.0
2665: 蓝桥杯2022年-选数异或(异或性质+动态规划) 摘要:```cpp #include #include using namespace std; typedef long long LL; const int N=1e5 + 10; /*…… 题解列表 2024年03月25日 0 点赞 0 评论 465 浏览 评分:0.0
2863: 删除单词后缀 摘要:解题思路:注意事项:参考代码:s = input() if 'er' in s[-2:] or 'ly' in s[-2:]: print(s[0:-2])…… 题解列表 2024年03月25日 0 点赞 0 评论 349 浏览 评分:0.0
2864: 单词替换 摘要:解题思路:注意事项:参考代码:s = input().strip().split() s1 = input().strip() s2 = input().strip() a = [s2 if i…… 题解列表 2024年03月25日 0 点赞 1 评论 156 浏览 评分:0.0