mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-08 02:13:51 +08:00
Update: Rename folder name to XSMOJ
This commit is contained in:
24
XSMOJ/【模板】快速排序.cpp
Normal file
24
XSMOJ/【模板】快速排序.cpp
Normal file
@ -0,0 +1,24 @@
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <cstring>
|
||||
#include <cstdio>
|
||||
#include <ctime>
|
||||
#include <cmath>
|
||||
typedef long long l;
|
||||
typedef double d;
|
||||
typedef char c;
|
||||
int arr[10000000];
|
||||
using namespace std;
|
||||
int main(){
|
||||
int a;
|
||||
cin >>a;
|
||||
for(int i=0;i<a;i++){
|
||||
cin >>arr[i];
|
||||
}
|
||||
sort(arr,arr+a);
|
||||
for(int i=0;i<a;i++){
|
||||
cout <<arr[i]<<" ";
|
||||
}
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user