Please read the new rule regarding the restriction on the use of AI tools. ×
Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Gordon-Freeman's blog

By Gordon-Freeman, history, 10 hours ago, In English

What do i change to make my code get AC iam getting Memory limit and i don't know why . my sub:283092736

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
9 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

it looks like you wrote 2000000 instead of 200000

  • »
    »
    6 hours ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Isn't 2×10^5 == 2000000 ? so it should be right

    • »
      »
      »
      6 hours ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      no, there should only be 5 zeros at the end

    • »
      »
      »
      3 hours ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      use constexpr int maxn = 2e5; to prevent this error