8000 Merge pull request #162 from std-freejia/master · unluckyjung/basic-algo-lecture@9e7708b · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e7708b

Browse files
Merge pull request encrypted-def#162 from std-freejia/master
Update 5648.cpp
2 parents 9313ea0 + 6498fb2 commit 9e7708b

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

0x0F/solutions/5648.cpp

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
}
1+
// Authored by : std-freejia
2+
// Co-authored by : -
3+
// http://boj.kr/c56909c54c4f4e9fb2c987a6eb3b96ee
4+
#include <bits/stdc++.h>
5+
using namespace std;
6+
7+
int n;
8+
string st;
9+
vector<long long> v;
10+
11+
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

Comments
 (0)
0