ilia_rr's blog

By ilia_rr, 19 months ago, In English

Hi codeforces

The longest codeforces activity streak (until now i think) has finally stoped after about 2 years.

Full text and comments »

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

By ilia_rr, 3 years ago, In English
  • Vote: I like it
  • +174
  • Vote: I do not like it

By ilia_rr, 3 years ago, In English

IOI statement

IOI organizers do not have the authority to comment on such an issue.

Why they didn't condemn the invasion of Iraq, Afghanistan, Yemen, Palestine and Syria?

Because their people are not European? or because the attacks were carried out by the United States, Saudi Arabia and Israel?

War is bad, but it must be bad for everyone, regardless of skin color or location.

We should not condemn an ​​attacker and ignore another one. This is completely racism.

Full text and comments »

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

By ilia_rr, 3 years ago, In English

Hi everyone!

When I try to open a acmsguru problem from last unsolved it says "No such contest" and returns to the last page I was on.

It's because last unsolved link for sgu problems is https://codeforces.me/problemset/problem/99999/{ID}

But there is no such page. it should be https://codeforces.me/problemsets/acmsguru/problem/99999/{ID}

MikeMirzayanov can you fix this?

Thanks

Full text and comments »

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

By ilia_rr, 3 years ago, In English

Hi everybody!

This blog is about speeding up C/C++ compilers with precompiled headers.

Including lots of headers or big headers like bits/stdc++.h will increase compilation time. This can be annoying even with high speed processors. We can solve this using precompiled headers.

What are precompiled headers?

You can compile a header like stdc++.h to stdc++.h.gch and compiler will use it instead of compiling the header every time you are compiling your code. Less processing => Less time.

How to use precompiled headers?

  1. Find your g++ default include directory

    • Ubuntu: /usr/include/x86_64-linux-gnu/c++/{version}
    • Windows: C:\MinGW\lib\gcc\mingw32\{version}\include\c++
  2. Compile headers you need (I recommend using bits/stdc++.h instead of including lots of headers).

    g++ {header name} {flags you use when compiling a normal code}

  3. Put .gch files in the right place. You have 2 Options:

    • Put them in the directory you find the headers & use #include <header name>
    • Put them in your code directory & use #include "header name"

    I recommend first options because the second one will work only when .gch files are in the code directory and it takes a little extra time to search in code.

Compile a code and feel the difference!

Comment your issues or suggestions.

Be good and code fast ;)

Full text and comments »

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

By ilia_rr, 3 years ago, In English

Hi everyone!

I think there is a problem with user activity.

logged in:

logged out:

Even though "What activity will be shown to other users" is set to All.

What's the problem?

Sorry for my bad English.

Full text and comments »

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