_MCYYDS_'s blog

By _MCYYDS_, history, 5 weeks ago, In English

2250A - Threshold Movement

Solution
Code

2250B - String Construction

Hint 1
Solution
Code

2249A - Rank Subsequence

Hint 1
Hint 2
Solution
Code

2249B - Permutation Cuts

Hint 1
Hint 2
Hint 3
Solution

Code

include <bits/stdc++.h>

using namespace std;

const int N = 1000000; const int mod = 998244353;

int n; int a[N + 10], vis[N + 10]; bool pre[N + 10], suf[N + 10];

void work() { cin >> n; for (int i = 1; i < n; ++i) cin >> a[i]; a[n] = 0;

for (int i = 1; i < n; ++i) {
    if (a[i] != n) continue;
    cout << 0 << '\n';
    return;
}

pre[0] = 1;
for (int i = 1; i < n; ++i) pre[i] = pre[i - 1] && a[i] >= a[i - 1];
suf[n] = 1;
for (int i = n - 1; i >= 1; --i) suf[i] = suf[i + 1] && a[i] >= a[i + 1];

long long ans = 0;
for (int cut = 0; cut < n; ++cut) {
    if (!pre

Full text and comments »

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

By _MCYYDS_, history, 6 weeks ago, In English

Hello / 你好,Codeforces!

We are really excited to invite you to participate in Codeforces Round 1112 (Div. 1) and Codeforces Round 1112 (Div. 2), which will be held on Jul/26/2026 17:35 (Moscow time).

For both division 1 and division 2, you will be given 2.5 hours to solve 6 problems in each division.

The problems were authored and prepared by aaa_Pigeon2, _MCYYDS_, 131241, Oken, and jhvjh.

We would really like to thank the following people for making this round possible:

The score distribution is as follows:

  • Div. 1: $$$750 - 1250 - 1750 - 2250 - (2250 + 1750) - 3500$$$
  • Div. 2: $$$500 - 750 - 1500 - 2000 - 2500 - 3000$$$

UPD: Editorial

UPD2: Congratulations to the winners!

Div .1:

  1. Benq

  2. Kevin114514

  3. d11maan

  4. Lynkcat

  5. 300iq

Div .2:

  1. Math_Tereegor

  2. RIMAMIR

  3. MINHTPC

  4. L1064

  5. axoIotl

Full text and comments »

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

By _MCYYDS_, history, 4 months ago, In English

It seems that there has been no rollback in the Nebius Round 2 (Codeforces Round 1088, Div. 1 + Div. 2) and subsequent rounds. When can we getting a rating roll back?

KAN MikeMirzayanov Please be faster, thanks.

Full text and comments »

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