8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ad3aaa + 07bde31 commit 3cf4962Copy full SHA for 3cf4962
0x0E/solutions/15688.cpp
@@ -1,11 +1,21 @@
1
-// Authored by : BaaaaaaaaaaarkingDog
+// Authored by : heheHwang
2
// Co-authored by : -
3
-// http://boj.kr/****************
+// http://boj.kr/ff8bea751284429baa8fd53b43f694d2
4
#include <bits/stdc++.h>
5
using namespace std;
6
7
-int main(void){
+const int MXN = 2'000'000, HALF = MXN / 2;
8
+int main(void) {
9
ios::sync_with_stdio(0);
10
cin.tie(0);
-
11
+
12
+ vector<int> numcnt(MXN + 2);
13
+ int N, t;
14
+ cin >> N;
15
+ while (N--) {
16
+ cin >> t;
17
+ numcnt[t + HALF]++;
18
+ }
19
+ for (int i = 0; i <= MXN; i++)
20
+ while (numcnt[i]--) cout << i - HALF << '\n';
21
}
0 commit comments