Скоро Codeforces Round 1133 (Div. 1, Div. 2)! Регистрация здесь. ×

Блог пользователя Loser_

Автор Loser_, история, 7 лет назад, По-английски

1111A - Superhero Transformation I have tried map for tracking either a char is vowel or consonant.And then comparing both the map's element, I may have my expected solution.But implementing map it came to my mind that map is a sorted container.So I google it and from stackoverflow I found this articlefifo_map which actually acts according to plan.But using above mentioned way I have a compilation error(No such directory).Is there any way to include external headers? My submission is here

  • Проголосовать: нравится
  • +4
  • Проголосовать: не нравится

»
7 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

You could always use the reliable:

spoiler
»
7 лет назад, скрыть # |
 
Проголосовать: нравится +12 Проголосовать: не нравится

You're trying way too hard for a simple problem. You can solve without using unordered_map. I, as a rule of thumb, like to keep things simple wherever they can be kept simple. Even you should try very simple implementations. You should also note that CF will not store every available library implementation available on the internet. We have the STL here only so fifo_map.hpp isn't available, wherever you found it. To use an unordered_map, use the library implementation instead of a third party source.

So, in order to help you solve this problem:

Hint
Hint