题解列表

筛选

2875: 回文子串

摘要:解题思路:注意事项:参考代码:s = input().strip()n = len(s)for i in range(2,n-1):    a = 0    b = a + i    while b ……

自由下落的距离计算

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int N,i;    double M,Sn=0,An=0;    scanf("%lf %d",&M,……

············&mid

摘要:解题思路://ASC||表,小写与大写之间差了32.注意事项://*str += 32; // 转换为小写字母 与 *str = *(str + 32);不同 //字符是可以直接比较的。if (*s……

2874: 行程长度编码

摘要:解题思路:注意事项:参考代码:s = input().strip()s = s.upper()s = s + &#39;0&#39;n = len(s)i = 0while i <= n-2:    ……

1756: 整数奇偶排序

```cpp#includeusingnamespacestd;intpx(longlonga[]){intj[10],o[10],x=0,y=0;for(inti=0;i=0;i--)cout

2873: 字符串p型编码

摘要:解题思路:注意事项:参考代码:s = input().strip()s = s + "a"n = len(s)i = 0while i != n-1:    c = 1    while s[i] =……

解 2872: 字符环

摘要:解题思路:注意事项:参考代码:a,b=input().strip().split()a = a + ab = b + bna = len(a)nb = len(b)c = 0if na < nb:  ……