#include <iostream>
using namespace std;
int main() {
int arr[10001] = { 0, };
int N,number;
cin >> N;
while (N--) {
scanf("%d", &number);
arr[number]++;
}
for (int i = 0; i < 10001; i++) {
for (int k = 0; k <arr[i]; k++) {
printf("%d\n",i);
}
}
}
'Algorithm ๐ง๐ปโ๐ป > ๋ฐฑ์ค(BOJ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค,c++] 11021๋ฒ - A+B-7 (0) | 2021.10.26 |
---|---|
[๋ฐฑ์ค,c++] 11004๋ฒ - K๋ฒ์งธ ์ (0) | 2021.10.26 |
[๋ฐฑ์ค,c++] 1100๋ฒ - ํ์ ์นธ (0) | 2021.10.26 |
[๋ฐฑ์ค,c++] 10988๋ฒ - ํฐ๋ฆฐ๋๋กญ์ธ์ง ํ์ธํ๊ธฐ (0) | 2021.10.26 |
[๋ฐฑ์ค,c++] 10987๋ฒ - ๋ชจ์์ ๊ฐ์ (0) | 2021.10.26 |
[๋ฐฑ์ค,c++] 10974๋ฒ - ๋ชจ๋ ์์ด (0) | 2021.10.25 |
๋๊ธ