#2176: c++


1753924-2@g.puiching.edu.mo (楊允瀧P5A24)

School : No School
ID : 3096
IP address : [192.168.120.33]
Last Login :
2025-06-16 15:28:57
b267. 排序問題(2) | From: [192.168.120.33] | Post Date : 2025-05-29 20:12

hehe I do not give you the answer

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

#include<bits/stdc++.h>
using namespace std;
int main(){
	vector<long long> a(10);
	for(int i=0;i<10;i++){
		cin>>a[i];
	}
	sort(a.begin(),a.end());
	reverse(a.begin(),a.end());
	for(int i=0;i<10;i++){
		cout<<a[i]<<" ";
	}
	return 0;
}
 
ZeroJudge Forum