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 9313ea0 + 6498fb2 commit 9e7708bCopy full SHA for 9e7708b
0x0F/solutions/5648.cpp
@@ -1,11 +1,23 @@
1
-// Authored by : BaaaaaaaaaaarkingDog
2
-// Co-authored by : -
3
-// http://boj.kr/****************
4
-#include <bits/stdc++.h>
5
-using namespace std;
6
-
7
-int main(void){
8
- ios::sync_with_stdio(0);
9
- cin.tie(0);
10
11
-}
+// Authored by : std-freejia
+// Co-authored by : -
+// http://boj.kr/c56909c54c4f4e9fb2c987a6eb3b96ee
+#include <bits/stdc++.h>
+using namespace std;
+
+int n;
+string st;
+vector<long long> v;
+int main(void) {
12
+ ios::sync_with_stdio(0);
13
+ cin.tie(0);
14
+ cin >> n;
15
+ for(int i = 0; i < n; i++) {
16
+ cin >> st;
17
+ reverse(st.begin(), st.end());
18
+ v.push_back(stoll(st));
19
+ }
20
+ sort(v.begin(), v.end());
21
+ for(auto i : v) cout << i << '\n';
22
+ return 0;
23
+}
0 commit comments