解 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 评论 538 浏览 评分: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 评论 500 浏览 评分:0.0
1756: 整数奇偶排序 ```cpp#includeusingnamespacestd;intpx(longlonga[]){intj[10],o[10],x=0,y=0;for(inti=0;i=0;i--)cout 题解列表 2024年08月03日 0 点赞 0 评论 468 浏览 评分:0.0
2020: 快速排序练习 ```cpp#includeusingnamespacestd;intn;intkspx(inta[]){sort(a,a+n);for(inti=0;i 题解列表 2024年08月03日 0 点赞 0 评论 463 浏览 评分:0.0
2874: 行程长度编码 摘要:解题思路:注意事项:参考代码:s = input().strip()s = s.upper()s = s + '0'n = len(s)i = 0while i <= n-2: …… 题解列表 2024年08月03日 0 点赞 0 评论 706 浏览 评分:0.0
[编程入门]自定义函数之字符串拷贝 题解 ```c#include#includevoidfun(charstr[],intn,intm){for(inti=n-1;i 题解列表 2024年08月03日 0 点赞 0 评论 745 浏览 评分:0.0
自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,i; double M,Sn=0,An=0; scanf("%lf %d",&M,…… 题解列表 2024年08月03日 0 点赞 0 评论 343 浏览 评分:0.0
2875: 回文子串 摘要:解题思路:注意事项:参考代码:s = input().strip()n = len(s)for i in range(2,n-1): a = 0 b = a + i while b …… 题解列表 2024年08月03日 0 点赞 0 评论 588 浏览 评分:0.0
不难,但有点繁琐 摘要:#include<bits/stdc++.h> using namespace std; int main() { char c[20]; cin>>c; int sum=0; …… 题解列表 2024年08月04日 0 点赞 0 评论 476 浏览 评分:0.0
1320: 字符串展开 摘要:解题思路:注意事项:只有一个小错误,91分参考代码:l = list(input().strip().split())if len(l) == 4: p1 = int(l[0]) p2 =…… 题解列表 2024年08月04日 2 点赞 0 评论 696 浏览 评分:0.0