c代码记录之三个字符串排序 摘要:题目没说每行字符串的上限长度,直接char a[1000]或a[10000]感觉都不太严谨,就用了动态数组,比较冗长 #include #include #include …… 题解列表 2023年12月01日 0 点赞 0 评论 110 浏览 评分:0.0
不是最优解,strcmp的那个方法好 摘要:```c #include #include int judge(char *s1,char*s2) { for(int i=0;i…… 题解列表 2023年12月19日 0 点赞 0 评论 94 浏览 评分:0.0
有瑕疵请指出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char ch[3][1000],b[1000]; int i; for(i…… 题解列表 2023年12月19日 0 点赞 0 评论 93 浏览 评分:0.0
暴力求解———C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[3][30],b[30],c[30]; int i; fo…… 题解列表 2024年01月05日 0 点赞 0 评论 113 浏览 评分:0.0
三个字符串的排序 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<cstdio>#include<cstring>using namespace std;//自定义函数,实现比较a…… 题解列表 2024年01月22日 0 点赞 0 评论 169 浏览 评分:0.0
三个字符串排序(二维数组+选择排序) 摘要:```c #define _CRT_SECURE_NO_WARNINGS #include #include int main() { char str[3][128] = { 0 …… 题解列表 2024年02月02日 0 点赞 0 评论 135 浏览 评分:0.0
冒泡排序思想,直接比较大小 摘要:解题思路:使用冒泡排序思想,直接用strcmp()函数比较字符串大小即可参考代码:#include<stdio.h> #include<string.h> int main(){ char a…… 题解列表 2024年03月06日 0 点赞 0 评论 117 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python a = input() b = input() c = input() word = [a, b, c] word.sort() # sort函数可以对数字排序 也…… 题解列表 2024年03月24日 0 点赞 0 评论 343 浏览 评分:0.0
字符串排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,j,a[3][100],t[100]; for(i=0;i<3;…… 题解列表 2024年04月04日 0 点赞 0 评论 180 浏览 评分:0.0
无聊的星期六 摘要:z = [str(x) for x in [input() for _ in range(3)]] z.sort() print('\n'.join(map(str, z)))…… 题解列表 2024年04月14日 0 点赞 0 评论 189 浏览 评分:0.0