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

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

Problem: Problem 1632B

I can't understand this problem's editorial, from where to derive this 2k−1 , 2k−2 , … , 0 , 2k , 2k+1 , … , n−1

How can I approach other bitmasks problems?

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

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

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

Hello everyone, I am facing a problem with a Problem.

Problem Link: https://mirror.codeforces.com/problemset/problem/1547/C

When I tried to submit my Python Code. It failed due to RunTime Error, But the same input provides the required correct output in my local ide. Please guide me through.

My Solution Link: https://mirror.codeforces.com/contest/1547/submission/235386393

Is there a trick in python I am missing?

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

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

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

Hello everyone, I am facing a problem with a Problem.

Problem Link: https://mirror.codeforces.com/problemset/problem/363/B

When I tried to submit my Python Code. It failed due to TLE, But when I converted it to CPP with help of a website. It was Accepted.

CPP Solution Link: https://mirror.codeforces.com/contest/363/submission/228253805

Is there a trick in python I am missing? or Is it that I should switch to CPP?

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

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

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

Hello everyone, I am trying to solve this problem: https://mirror.codeforces.com/contest/1861/problem/B

My submission: https://mirror.codeforces.com/contest/1861/submission/221639641

My Python code is running correctly in my ide, but i am getting runtime error in the sample testcase in codeforces!!

Am i missing anything??

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

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

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

Hi everyone. I am starting cp. I have given 1 contest. Can anyone tell me to what to do and how to become a better problem solver.

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

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