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

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

I recently found that clang is better than gcc in many ways( according to some blogs ). I tried a lot but couldn't find a build system for compiling c++ code using clang in sublime text. Can anyone please share it here. It can help many other people.

Thanks in advance.

Полный текст и комментарии »

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

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

Hi!

I was trying the Atcoder educational DP contest and I wrote a recursive DP solution for problem A . It works fine for 7 test cases but fails for last 4.

The point that is disturbing me is that, similar logic but iterative code of DP is getting accepted for other people.

Can someone please help me with this or point out my mistake if I am doing a foolish one.

This is my code

This is the iterative code that works

ALSO, ONE MORE DOUBT. I DOWNLOADED THE TEST CASE, IT HAD SOME 99000 VALUES IN ARRAY. THE CODE JUST DIDN'T GIVE ANY OUTPUT IN SUBLIME TEXT. I TRIED SOME ONLINE COMPILERS THEY ALSO HAD A INPUT SIZE RESTRICTION. SO IT ALSO DIDN'T WORK. MY QUESTION IS, IS IT SOME RESTRICTION THAT WINDOWS OS HAS INBUILT OR IT IS SOME OTHER ISSUE?

Thanks in advance.

Полный текст и комментарии »

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

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

Can someone please help me out with this?

=========================================

  1. how is this penalty calculated in the given picture?

  2. what does the column with delta sign means? some contestants have that as blank others have a positive value.

  3. if i am doing a wrong submission on code forces than which of the two am i getting ? time penalty or points penalty ?

  4. is time penalty overall(on my total time for all the problems) or is it just for the particular question on which it was given.

Полный текст и комментарии »

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