使用qsort函数排序 摘要:这道题坑挺多 首先,假如数组元素只有一个,那个只需要把那个元素输出,然后再输出一个-1即可,其次,这道题需要连续输入。 ```c #include #include int cmp(co…… 题解列表 2024年08月01日 0 点赞 0 评论 152 浏览 评分:0.0
特殊排序 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<algorithm> using namespace std; bool cmp(int x,int y)…… 题解列表 2019年02月25日 0 点赞 0 评论 764 浏览 评分:7.0
特殊排序 (C语言代码) 摘要:#include<stdio.h> int main() { int i,pi,k,j,t,x=0,n; int a[1001]; while(scanf("%d",&n)!=EOF)…… 题解列表 2019年04月05日 1 点赞 0 评论 813 浏览 评分:8.0