Блог пользователя foundnt_Alice

Автор foundnt_Alice, история, 5 недель назад, По-английски
  • Проголосовать: нравится
  • +8
  • Проголосовать: не нравится

Автор foundnt_Alice, 4 месяца назад, По-английски

Hi!

Recently I tried to solve a problem with 1.5s time limit. After several tries, I finally got AC within 1496ms.

![ ](20240122-224251)

Share your lucky moments!!!

Полный текст и комментарии »

  • Проголосовать: нравится
  • -8
  • Проголосовать: не нравится

Автор foundnt_Alice, история, 4 месяца назад, По-английски

Hi all!

Recently, I tried to implement a HLD struct. However, my local computer shows Segmentation Fault verdict as soon as I set the constraint of N to 1e5, the online judge shows TLE verdict btw. Small constraint on N works just fine. Here is the code:

Segmentation Fault Code

So, I tried to rewrite the same code without using struct. This time my local computer ran smoothly and the online judge showed AC verdict.

The AC code:

Could someone plz explain why's there a difference verdict in my codes? Where did I get it wrong? I much appreciate it!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +6
  • Проголосовать: не нравится

Автор foundnt_Alice, история, 15 месяцев назад, По-английски

Most of the editorials are well-written in a very formal way. I guess I'm not good at reading formal stuff. Luckily, I have my own solution for this, reading contest announcement comments or looking at jiangly submissions. Not gonna lie, his codes are super neat and thankfully he participates in most of the contests both officially and unofficially.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +7
  • Проголосовать: не нравится