View Code of Problem 78

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<climits>
#include<cmath>
#include<unordered_map>
#include<set>

using namespace std;


int main()
{
	vector<string> strs(3);

	for (int i = 0; i < 3; i++)
		getline(cin, strs[i]);

	sort(strs.begin(), strs.end());

	for (int i = 0; i < 3; i++)
		cout << strs[i] << endl;
}

Double click to view unformatted code.


Back to problem 78