ishan_luhani's blog

By ishan_luhani, history, 2 months ago, In English

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?

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it

By ishan_luhani, history, 8 months ago, In English

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?

Full text and comments »

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

By ishan_luhani, history, 9 months ago, In English

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?

Full text and comments »

  • Vote: I like it
  • -9
  • Vote: I do not like it

By ishan_luhani, history, 11 months ago, In English

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??

Full text and comments »

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

By ishan_luhani, history, 16 months ago, In English

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.

Full text and comments »

  • Vote: I like it
  • -18
  • Vote: I do not like it