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

Автор GrayNextCentury, история, 12 месяцев назад, По-английски

Hi MikeMirzayanov I have an issue with my 213400052 for problem D today. I passed the pretests, which consisted of 10 tests, but my code failed in test 7 during the system test due to a memory limit that I exceeded. I'm not sure what this means. Additionally, I submitted the same code 213422705 using the G++ 17 compiler and it was accepted, but when I used G++ 17 64 bit during the contest , I exceeded the memory limit. Can someone explain this to me? I don't think it's fair

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

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

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

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

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

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

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

»
12 месяцев назад, # |
Rev. 2   Проголосовать: нравится +11 Проголосовать: не нравится

it's fair.

when n=1, your code are using long long ndi without init. if ndi is a large number it will get ml bcz tem+=a;.

just i fell weird why clang can't find this ub. f* clang diagnostics