············&mid 摘要:解题思路://ASC||表,小写与大写之间差了32.注意事项://*str += 32; // 转换为小写字母 与 *str = *(str + 32);不同 //字符是可以直接比较的。if (*s…… 题解列表 2024年08月03日 0 点赞 0 评论 157 浏览 评分:9.9
2874: 行程长度编码 摘要:解题思路:注意事项:参考代码:s = input().strip()s = s.upper()s = s + '0'n = len(s)i = 0while i <= n-2: …… 题解列表 2024年08月03日 0 点赞 0 评论 413 浏览 评分:0.0
2020: 快速排序练习 摘要:```cpp #include using namespace std; int n; int kspx(int a[]){ sort(a,a+n); for(int i=0;i…… 题解列表 2024年08月03日 0 点赞 0 评论 168 浏览 评分:0.0
1756: 整数奇偶排序 摘要:```cpp #include using namespace std; int px(long long a[]){ int j[10],o[10],x=0,y=0; for(int …… 题解列表 2024年08月03日 0 点赞 0 评论 206 浏览 评分:0.0
2873: 字符串p型编码 摘要:解题思路:注意事项:参考代码:s = input().strip()s = s + "a"n = len(s)i = 0while i != n-1: c = 1 while s[i] =…… 题解列表 2024年08月03日 0 点赞 0 评论 239 浏览 评分:0.0
解 2872: 字符环 摘要:解题思路:注意事项:参考代码:a,b=input().strip().split()a = a + ab = b + bna = len(a)nb = len(b)c = 0if na < nb: …… 题解列表 2024年08月03日 0 点赞 0 评论 243 浏览 评分:0.0
大数的阶乘C语言代码 摘要:解题思路:大数的阶乘很容易超出基本数据类型的范围造成数据溢出,所以需要定义一个数组来存储数据(数组可以存放无限大的数据)。阶乘的本质就是数的相乘,因此在计算大数的阶乘的时候可以通过模拟笔算的方式,将数…… 题解列表 2024年08月03日 5 点赞 0 评论 500 浏览 评分:10.0
本题不是排序,不是排序 摘要:重要的事情说三遍,本题很坑,因为这道题不是让你排序,其实是找到最大值和最小值然后和数组首元素和尾元素交换位置即可,其他元素不用管。 ```c #include #include void …… 题解列表 2024年08月03日 0 点赞 0 评论 196 浏览 评分:0.0
正在路上,每一步都是生活 摘要:```n=int(input()) mc=[] for i in range(n): s=int(input()) mc.append(s) k=max(mc) sl=[0…… 题解列表 2024年08月03日 0 点赞 0 评论 456 浏览 评分:0.0
正在路上,每一步都是生活 摘要:``` n=int(input()) sl=[0]*(n+2) sl[1]=1 sl[2]=1 for i in range(3,n+1): sl[i]=sl[i-1]+sl[i-…… 题解列表 2024年08月03日 0 点赞 0 评论 463 浏览 评分:0.0