abhinash6g's blog

By abhinash6g, history, 3 years ago, In English

D. Little Girl and Maximum XOR
Correct Submission
Incorrect Submission
This happens because of inbuilt log2 precission

log2(288230376151711743)=58 , which should be 57 instead.

Please Add below Testcase, if possible.

l=1 r=288230376151711743

correct output : 288230376151711743.

Let me know , if I'm wrong.

Full text and comments »

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

By abhinash6g, history, 3 years ago, In English

Hi! Codeforces Community. Many a times while practicing problems or in contest we get few problems that take hours of struggle but at the end leave us with something new, some brillaint concept, idea or trick. Just wanted to know about "Special Problems" that you may have come across, that had taught you something great! Please, forgive me for any mistake!

Full text and comments »

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

By abhinash6g, history, 4 years ago, In English

Hi everyone! I wanted to reduce the compilation time of the program so I searched and found few good blogs like Using GCC reduce compilation time , but nothing worked. I thought of using precompiled file for bits/stdc++.h as that u reduce the compilation time, but couldn't accomplish that. I spent more than 3 hrs searching on the net but found no good, so I feel that the community can help me with an answer. I'm using CLion on Mac OS. Tried hands on it but got a lot of errors that I couldn't understand. Please forgive me for my mistakes, if any. Thank u community!

Full text and comments »

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