B. Bogosort1000 / 思维

Posted 幽殇默

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了B. Bogosort1000 / 思维相关的知识,希望对你有一定的参考价值。


https://codeforces.com/problemset/problem/1312/B

#include<bits/stdc++.h>
using namespace std;
const int N=1e3+10;
int a[N];
int main(void)
{
	int t; cin>>t;
	while(t--)
	{
		int n; cin>>n;
		for(int i=0;i<n;i++) cin>>a[i];
		sort(a,a+n);
		for(int i=n-1;i>=0;i--) cout<<a[i]<<" ";
		cout<<endl;
	}
	return 0;
}

以上是关于B. Bogosort1000 / 思维的主要内容,如果未能解决你的问题,请参考以下文章

B. Balanced Remainders1000 / 思维 贪心

B. String LCM1000 / 思维

B. Array Cancellation1000 / 思维 贪心

B. Combinatorics Homework1000 / 思维

B. Binary Removals1000 / 思维

B. Hemose Shopping1000 / 思维