khokho's blog

By khokho, history, 5 years ago, In English

Hey guys, I just found out about policy based data structures implemented in C++ STL (here), is it allowed/possible to use them on IOI?

(I understand that will highly probably won't need it on IOI because of style of problems, but still...)

 
 
 
 
  • Vote: I like it
  • +9
  • Vote: I do not like it

»
5 years ago, # |
  Vote: I like it +17 Vote: I do not like it

Yes, it is allowed to use them if the C++ compiler in the contest supports them, and most probably it will. It's a good idea to test this during the practice session if you consider using them.

»
5 years ago, # |
Rev. 2   Vote: I like it +19 Vote: I do not like it

Another similar question:

Is it allowed to use "#pragma GCC optimize("O3")" ?

  • »
    »
    5 years ago, # ^ |
      Vote: I like it +9 Vote: I do not like it

    Sure, you can use all features that the compiler provides.

    The IOI rules specify what is not allowed. You can't use files, network etc., but otherwise there are no restrictions.

  • »
    »
    5 years ago, # ^ |
      Vote: I like it -45 Vote: I do not like it

    You won't need it, your solutions anyway are trash.