1. A cat is |
1. An eagle is |
1. Dogs are |
larger than a |
the most |
heavier than |
mouse. |
dangerous bird |
mice. |
in the Moscow |
||
Zoo. (A |
||
peacock is the |
||
most beautiful |
||
bird...) |
||
2. Ostriches |
2. Ostriches |
2. The largest |
can't fly. |
are the |
animal in the |
biggest/largest |
world is the |
|
birds. |
whale. |
|
3. A shark's |
3. A cheetah is |
3. The blue |
ears are very |
faster than a |
whale is the |
small. |
giraffe. |
largest |
animal./The |
||
whale shark is |
||
the largest |
||
fish. |
||
4. The Asian |
4. Crocodiles |
4. Some pigs |
elephant is |
are more |
are black. |
bigger/larger |
dangerous than |
|
than the Nile |
alligators. |
|
crocodile. |
int main()
{
std::vector > vec;
std::ifstream fin("race.in");
int n;
fin >> n;
if (n <= 0)
exit(1);
std::string country;
std::string name;
for (int i = 0; i < n; i++) {
fin >> country >> name;
vec.push_back(std::make_pair(country, name));
}
std::stable_sort(vec.begin(), vec.end(), [](const auto& l, const auto& r) {return l.first < r.first; });