Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

kunzaZa183's blog

By kunzaZa183, history, 11 months ago, In English

Hi Codeforces, I was trying to solve this problem, and I was struggling to see why my code TLEs when other people's code (you can search up cses hamming distance solution for this) passes with similar logic.

Turns out when I add #define int long long, my code magically passes and becomes quite a bit faster. I am dumbfounded by this phenomenon, and the only explanation that was somewhat reasonable was this (which is still crazy to me).

I guess sometimes long long really is faster than int.

Full text and comments »

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

By kunzaZa183, history, 2 years ago, In English

Hi everyone,

I'm a big fan of Visual Studio Code. However, I'm not a big fan of the C/C++ intellisense provided by Microsoft. Although I am aware it works on other machines; on my machine, it is a slow and buggy extension that seems to hallucinate more often than not, which led me to switch to clangd as my primary C/C++ autocomplete extension. I've been using clangd for quite a while and I like it. One annoying thing I want to fix though, is the lack of inclusion of headers that are provided by GCC.

Headers like bits/stdc++.h, ext/pb_ds aren't supported by clang, but I would like to know how I could be able to use these headers with clangd on vscode. I remember that during IOI2024, the clangd extension provided by the host allowed me to use these headers, so I know that it is possible.

Full text and comments »

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

By kunzaZa183, history, 4 years ago, In English

Here's my submission 166077380. For some reason, it fails on test 2, testcase 13 however, I'm not able to view it (which is probably intended). I tried checking the editorial and their code Editorial is quite similar to mine. I also cannot find any other solution from other submissions that fail at test 2, testcase 13. Can anyone provide some help?

Full text and comments »

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