题解列表
--------------------字符串拼接------------------------------字符串倒序----------
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
#include<string.h>
void strcat_custom(char* dest, const char* ……
2875: 回文子串
摘要:解题思路:注意事项:参考代码:s = input().strip()n = len(s)for i in range(2,n-1): a = 0 b = a + i while b ……
1049: [编程入门]结构体之时间设计——题解
摘要:```c
#include
typedef struct{
int year,month,day;
}YEAR;
int main(){
YEAR a;
int……
[编程入门]自定义函数之字符串拷贝 题解
摘要:
```c
#include
#include
void fun(char str[],int n,int m){
for(int i=n-1;i……
············&mid
摘要:解题思路://ASC||表,小写与大写之间差了32.注意事项://*str += 32; // 转换为小写字母 与 *str = *(str + 32);不同
//字符是可以直接比较的。if (*s……
2874: 行程长度编码
摘要:解题思路:注意事项:参考代码:s = input().strip()s = s.upper()s = s + '0'n = len(s)i = 0while i <= n-2: ……
2020: 快速排序练习
摘要:```cpp
#include
using namespace std;
int n;
int kspx(int a[]){
sort(a,a+n);
for(int i=0;i……
1756: 整数奇偶排序
摘要:```cpp
#include
using namespace std;
int px(long long a[]){
int j[10],o[10],x=0,y=0;
for(int ……