编写题解 1169: 绝对值排序
摘要:解题思路:注意事项:参考代码:while True: a = list(map(int,input().split())) if a[0]==0: break else……
绝对值排序(C语言)
摘要:
#include
int main()
{
int i, a[101], n;
while(scanf("%d", &n)!=EOF)
{
fo……
用sort函数解决问题
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;bool cmp(int a,int b){ return abs(a)>abs(b……
绝对值排序(C冒泡排序)
摘要:解题思路: 读题:输入n(n<=100)个整数,按照绝对值从大到小排序后输出。题目保证对于每一个测试实例,所有的数的绝对值都不相等。 输入格式:输入数据有多组,每组占一行,每行的第一个数字……
绝对值排序(C语言)冒牌排序进行排列
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,j,x,t; while(scanf("%d",&x)!……
只有代码哦,但是思路比较简单
摘要:解题思路:注意事项:参考代码:import java.util.Arrays;import java.util.Scanner;public class Main { public static……
绝对值排序利用set容器
摘要:解题思路:去掉重复使用set容器注意事项:参考代码:# include <iostream>
# include <set>
# include <math.h>
using namespace……
编写题解 1169: 绝对值排序—比较简单的方法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
#include<math.h>
int main()
{
int n,i,j,a[100];
while(……