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

Автор old_man_die_hard, история, 4 дня назад, По-английски

Submission 306505383

I don't think I wrote abnormal code, so why I got ILE? ILE usually appears in interactive problems, so this is pretty strange.

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

»
4 дня назад, # |
  Проголосовать: нравится -12 Проголосовать: не нравится

Skill issue bro

  • »
    »
    4 дня назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    So what's the problem? Can you point this out? I couldn't find that anyway :(

    • »
      »
      »
      4 дня назад, # ^ |
      Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

      Probably because of your custom function for reading input.

      • »
        »
        »
        »
        4 дня назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        Not this problem. The real problem is the constant $$$T$$$.

        In FFT the result's size should be larger or equal to twice of the degree of the polynomial, which is $$$2t$$$. And it should be a power of $$$2$$$. So the size is $$$131072$$$, but I thought is was $$$65536$$$.

        Anyway, thank you for your advice.

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

Auto comment: topic has been updated by old_man_die_hard (previous revision, new revision, compare).

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

I submitted the same submission with G++17 it gives TLE

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

Finally got accepted.

A lesson: There's a chance to get any verdict by less array size, except accepted.