B.cpp 243 B

1234567891011121314
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4. vector<string> v(10);
  5. for (auto &e:v) {
  6. getline(cin, e);
  7. }
  8. sort(v.begin(), v.end());
  9. for (auto s:v)
  10. cout << s << endl;
  11. return 0;
  12. }