When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

hydrastuff's blog

By hydrastuff, 11 years ago, In Russian

Уважаемые организаторы, не получается взять условия из системы.

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

»
11 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

What is the 44th test in Div2 T like?

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

    It's like 2, 2; 4, 4; 6, 6; ... 96, 96; 98, 98; 99; 100 shuffled randomly, and the answer is -1. The basic idea was to have almost all powers (but not all of them) have the same residue modulo some small number.