mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-27 20:16:29 +00:00
P1271 【深基9.例1】选举学生会
R38787626
This commit is contained in:
parent
4ebaa9f954
commit
46fc18cd1d
19
problem/P1271/P1271.cpp
Normal file
19
problem/P1271/P1271.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
// R38787626
|
||||
|
||||
#include<bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
int n, m, a[2000005];
|
||||
cin >> n >> m;
|
||||
for(int i = 0 ; i < m ; i++) {
|
||||
cin >> a[i];
|
||||
}
|
||||
sort(a, a+m);
|
||||
for(int i = 0 ; i < m ; i++) {
|
||||
cout << a[i] << ' ';
|
||||
}
|
||||
cout << endl;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user