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

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

I don't have a lot of experience with c++, but decided to give it a try since I heard it's very good for competitions. My code when used with an older compiler gives a wrong answer and with the new one the solution is correct, but it fails due to a runtime error in test 2. I couldn't find any issue in my code. Am I missing something?

https://codeforces.me/submissions/KP56

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

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

You missing link to any code to watch at:)

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

    I have a question.

    whenever i write recursive lambda function. it does not work for long long. Like what if i need to return long long type in a dp problem.

    for example:-

    example code

    I don't want to write a blog for it that's why i asked here. Is there anyone who can tell the reason.

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