TheScrasse's blog

By TheScrasse, history, 10 months ago, In English

Hi everyone,

after Codeforces Round 889 (Div. 1), maybe it's time to collect all my problems here. For now, I've mainly invented easy-ish problems. I wish to invent a very hard problem sooner or later :)

Update after Pinely Round 3

I'm putting the story of each problem under spoiler, because it may contain parts of the solution. I invented many problems by just trying random setups until I came up with something solvable, but some problems (especially the harder ones, for example 1854D - Майкл и отель) may have more interesting stories.

Fun facts:

Authored (roughly sorted by difficulty)

preoii_vm - Aggiornamento della macchina virtuale

Story

cc PATHPAR - Path Parity

Story

cc XORPERM - Xor Permutation

1909A - Различные кнопки

Story

1485A - Прибавляй и дели

Story

cc SUMPRODSEG - Sum Product Segments

Story

cc MXMODSUM - Maximum Pairwise Modular Sum

Story

1855B - Наибольший интервал делителей

Story

terry 2023/3 - Dipingere i muri

Story

1485B - Замена и возрастание

Story

1928B - Уравняй

Story

cc SEGFAULT - Segmentation Fault

Story

cc SUBARRAYLEN - Subarrays with length

Story

terry 2023/4 - Viaggio intrigante

Story

1909B - Сделать почти равными по модулю

Story

1909C - Тяжелые интервалы

Story

cc ANTIKNAPSACK - Anti-knapsack

Story

cc THROWTAKE - Throw and Take

Story

ois_fibonacci - Fibonacci Sequences

Story

1854A2 - Dual (сложная версия)

Story

1909D - Разделить и плюс K

Story

1485D - Делители и степенные разности

Story

1854B - Заработать или разблокировать

Story

preoii_armadio - Evasione dall'armadio

Story

UOI 2023/7 - Add Again

Story

1485E - Передвижения и замены

Story

1485F - Копия или префиксная сумма

Story

1909E - Несколько ламп

Story

cc NDANDANDOR - Non-decreasing AND and OR

Story

1854C - Ожидаемое разрушение

Story

preoii_allenamento - Allenamento su ChinaForces

Story

ois_aliga - A Day in Olbia

Story

cc PERMSEGMENTS - Permutation Segments

Story

1909F2 - Небольшая задачка про перестановки (сложная версия)

Story

1854D - Майкл и отель

Story

1909G - Лемма о накачке

Story

1909I - Короткая задача о перестановке

Story

1909H - Сортировка параллельными обменами

Story

Partially authored (roughly sorted by difficulty)

1654A - Наиболее вкусный торт

Story

preoii_triplets - Comune di Alleib

Story

1485C - Деление и остаток

Story

arc147_c - Min Diff Sum

Story

preoii_permutazione2 - Trova la permutazione

Story

preoii_sets - Insiemi nell'armadio

Story

oii_corridoi - Arte nei corridoi

Story

1762E - Сумма на дереве

Story

preoii_statue - Galleria d'arte

Story

UOI 2023/4 - Array and prefix sums

Story

1654H - Three Minimums

Story
  • Vote: I like it
  • +75
  • Vote: I do not like it

»
10 months ago, # |
  Vote: I like it +1 Vote: I do not like it

I love your questions because of how concise they are.

»
10 months ago, # |
  Vote: I like it +1 Vote: I do not like it

I wish people like you become immortal and stay healthy.

»
10 months ago, # |
  Vote: I like it +10 Vote: I do not like it

Thanks! I like the problem 1854C & 1854D.

by the way what is the random solution from JOI 2019 — Virus Experiment ?

  • »
    »
    10 months ago, # ^ |
    Rev. 2   Vote: I like it +18 Vote: I do not like it

    I guess this is an implementation of the random solution.

    The main idea is that you simulate the process starting from random nodes, and you can discard some nodes (i.e., they don't achieve the minimum number of infections) if you end up in a past starting point. The complexity is $$$O(n \log n)$$$ on average. The initial version of my problem was basically this idea, made interactive.