shiny_shine's blog

By shiny_shine, history, 2 months ago, In English

As you know, in this reason, 64-bit C++ compilers are temporarily disabled.

In order to keep using __int128 (at least partially) in 32-bit compilers, I'm trying writing a template of the unsigned version of __int128.

On 2024/3/15, I completed writing the alpha version of it.

If you find bugs in my code, please leave a comment below. Thanks!

UPD:

2024/3/14: added (maybe) all operators that an __int128 has except for operator/ / fixed infinite-recursion bug in several operators

2024/3/15: added operator/ / fixed many bugs in almost all arithmetic operators / completed first (buggy) version of this handmade __int128

Here's it:

integer_128_impl.cpp

Full text and comments »

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

By shiny_shine, history, 3 months ago, In English

Abstract

After I post some wrong advice and got a number of downvotes, I came up with this idea to recollect some upvotes. When I heard that Luogu will release their international version with problem statements translated with LLM, I imagined how would these models translate them.

Full text and comments »

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

By shiny_shine, history, 3 months ago, In English

Abstract

Suspend participating in Codeforces Rounds for a long time (at least a few months). During this time, try to participate in contests on other websites (AtCoder/Luogu/CodeChef or other). After that, when you participate in Codeforces Rounds again, your rating will surprisingly increase (at least for me). Here's why.

Full text and comments »

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

By shiny_shine, history, 4 months ago, In English

Abstract

Never use reference value on std::priority_queue, otherwise it will be affected when you push in something "greater" than it.

Full text and comments »

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

By shiny_shine, history, 4 months ago, In English

Abstract

  1. Never apply a binary search on std::list.
  2. If you want to make a custom _Comp function for std::set , write down as many instructions to distinguish elements in the set as possible.

Full text and comments »

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

By shiny_shine, history, 12 months ago, In English

There are 3 unrated contests in AtCoder after I registered my account

Full text and comments »

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