题解 1169: 绝对值排序

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

绝对值排序优质题解

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){   int n,i,j,k=0,a[105];   while(scanf("%……

题解 1169: 绝对值排序

摘要:参考代码:#include<stdio.h>#include<math.h>#define N 100void main(){   int i,j,k,s,t,temp,a[N][N];      f……

最简单的方法,我敢保证

摘要:解题思路:再重新搞一个数组b,b的位置要对应a的位置,b数组是a数组绝对值的翻版,所以用它来比较大小,这个答案在网页上错误50%,我也不懂,但是这个放在DEVC++上的结果是正确的,注意事项:参考代码……

1169: 绝对值排序

摘要:C语言网刷题以来首次碰到用 pair 的题。#include<bits/stdc++.h> using namespace std;   bool cmp(pair<int,int> &a,pa……

绝对值排序

摘要:解题思路:冒泡排序注意事项:EOF参考代码:#include<stdio.h>void sort(int a[],int n);int main(){    int i,j,k,m,n,a[100];……

python 容易理解

摘要:解题思路:注意事项:参考代码:ls =list(map(int,input().split()))while ls[0] != 0:    lt = ls[1:]    b=[]    for i i……

绝对值排序

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#include<string.h>#include<ctype.h……

绝对值排序

摘要:解题思路:  分为三步走:1、先将负数变为正,2、冒泡排序,3、还原负数注意事项:参考代码:#include "stdio.h"int main() { int n, a[100], b, i, j,……

List直接比较器

摘要:import java.util.*;public class Main {    static Scanner in=new Scanner(System.in);    public static……

绝对值排序

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std; bool cmp(int a, int b);int main(){    int……