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

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

Oh hello there. I, chromate00, am back! Oh no, I hope you are not misunderstanding me, I'm not pulling a joke on the announcement this time. I'm too busy for that right now. So here's the (mostly copy-pasted) announcement of Codeforces Round 1080 (Div. 3).

Anyways. Starting from Feb/15/2026 17:45 (Moscow time), you will be given $$$\mathbf{7}$$$ or $$$\mathbf{8}$$$ problems to be solved in $$$\mathbf{2.5}$$$ hours.

The round will be hosted by rules of educational rounds (extended ICPC). Thus, all solutions will be judged on preliminary tests during the round, and after the round, there will be a 12-hour phase of open hacks. After the open hack phase, all accepted solutions will be rejudged on successful hacks. Also, note that there is no score distribution but the usual penalty of 10 minutes for each wrong submission, following the rules of educational rounds.

Remind yourself that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a trusted participant of the third division, you must:

  • take part in at least five rated rounds (and solve at least one problem in each of them)
  • not have a rating of 1900 or higher at any moment in time.

Regardless of whether you are a trusted participant of the third division or not, if your rating is less than 1600, then the round will be rated for you (unless you register unrated).

Also, note the rule restricting the use of AI. If you are caught while breaking this rule, you will be sent to cry's new basement on Mars without oxygen.

This round is made possible by the help of the following people:

I hope that you will enjoy the contest. Good luck and have fun!

UPD1: Editorial has been posted

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

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится -28 Проголосовать: не нравится

First!

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +12 Проголосовать: не нравится

obligatory tester comment

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится

As not a tester, it is unlikely that there will be any aliens participating in the round

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +20 Проголосовать: не нравится

I am glad to see that we can finally stop paying insane costs to keep cry's basement on Earth; rent on Mars is probably much cheaper, and we can funnel the money saved into cry's gacha addition

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

As a continuous supporter of chromate00, what does it mean?

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +37 Проголосовать: не нравится

As a Tester, I don't know how to farm contribution

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +17 Проголосовать: не нравится

As a tester, Chromate = Chromaid.

»
7 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится +3 Проголосовать: не нравится

Wish to enjoy the problems

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится

as a tester, i can confirm having no oxygen in basement is not fun

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

As a tester, I tried to pretend not to have tested.

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

As a non-AI user I hope I can reach to cry's basement

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

GLHF!

»
7 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

damn cry does have a basement on Mars while Elon Musk couldn't even fly to it

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

2.5 hours is perfect: 30 minutes solving, 2 hours staring at WA on problem C.

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +17 Проголосовать: не нравится

As a tester, I can confirm there are no problems with the problems, the test cases test cases, and the time limits limit time.

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

As a participant, I can ensure that when you're just a few rating behind to reach a new rank, you can't trust the authors, even if he is your friend. xD

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

cry should tell Elon Musk how to build basements on Mars

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

i think we can safely assume there will be 8 problems. if that was not the case, they would have made a 6 7 joke. right?

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I liked the part with cry's basement on Mars <3

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

as a non-tester i think that the problems will be about space (i think so)

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

you will be given 7 or 8 problems what is this ?? can you tell exact no. of problems

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

As a tester, when did i test this?

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

cry Congratulations on getting a new basement on Mars. Did you have a contract with Elon Musk?

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

ahh, another Div3

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I'm so happy to tell you that Mars is my hometown, will you send me back to my hometown and reunite with my great-great-great-great-great-great grandma?

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Best of Luck everyone

»
7 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится +3 Проголосовать: не нравится

When will there be cry's digital basement?

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +12 Проголосовать: не нравится

Every time you use AI in a Div3 round, a puppy dies

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

It's my first competition, and I hope I can get a good grade.

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can I go to mars now?

»
7 месяцев назад, скрыть # |
Rev. 3  
Проголосовать: нравится +6 Проголосовать: не нравится

Can I take some KMnO₄, HCl and Na before I’m sent to cry’s new basement?

Can I sell oxygen tanks there for free?

»
7 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится +8 Проголосовать: не нравится

Change in time?

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Nice. I'll have more time to have breakfast.

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

what does 7 or 8 problems even mean?

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

One more day until Lunar New Year, and this contest is really special. Happy Lunar New Year, everyone!

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I'm here to participate in order to prepare for staying up late tomorrow, when I'll watch the Spring Festival Gala from the beginning to the end......

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Sieve of Eras67 , Absolute Cinema and its test case 69 420.... XD

This contest truly is Absolute Cinema

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

lets goo

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

loved the choice of numbers by authors

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

Mathforces !

»
7 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

how does ts segfault (it has smth to do with negative numbers i think but i legit have no clue (even commenting out everything other than the I/O still segfaults btw) spoiler for f btw

code
»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I felt E was much easier than D if you know basic tree.

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

I'm not good at math, so I realized $$$F$$$ is not a classic maximum size clique problem, and has to do something with arranging the quadratics in some way, and doing $$$O(n^2)$$$ DP, but couldn't figure out how. Had to move on to $$$G$$$ instead, where my "recursion by walking on the tree for every query" TLE'd on test 16. Sadge :(

Good problems though, thanks for the round chromate00

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How can D have so many acc?

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

how to do pF ? I tried to build a DAG like this

auto con = [&](int i, int j) -> bool {
	auto [a, b, c] = v[i];
	auto [d, e, f] = v[j];
	if(a==d && b==e){
		return false;
	}
	return (b-e)*(b-e) >= 4LL*(a-d)*(c-f);
};

for(int i=1;i<=n;i++){
	for(int j=i+1;j<=n;j++){
		if(!con(i, j)){
			if(get<2>(v[i]) > get<2>(v[j])){
				G[j].push_back(i);
				deg[i]++;
			}
			else{
				G[i].push_back(j);
				deg[j]++;
			}
		}
	}
}

and I used DFS to get the longest chain the node at, but I got WA at test 2

»
7 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

There were some Einsteins on the exam.

J1_1_1 Be_ast MaxLim overlord_god

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Is Binary Lifting involved in Problem G ?

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How to do F?

»
7 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

lol..it's great problem list _great work guy,thank u!

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

The quality of problems is soo good here

F was a damn good problem Got to learn longest-chain and MIS in graph is a thing

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

SOOOOOOO MANY CHEATER HOW TO SAY THEM

TheKrrish -->look at just the codes

Adham

AbhiIron

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

YARISDA EINSTEINLER VAR IDI

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

after looking at problem A : "67" , most of time "67" meme was running in my head

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Had fun. This Was the best contest till date for me.

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +7 Проголосовать: не нравится

what is really cry's basement and how to apply sb to these basement. This contest wasn't not a contest. it was just Cheater pool

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Very creative problemset, E and F are very good! Thanks.

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Was able to find the number of triangles 3N^2 for H but , it was a great adhoc to deal with , Golovanov399 's solution is very nice ^-^

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I should go to cry's basement rather than doing bad performances in every contest.

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Easy $$$O(N \log N)$$$ Solution for B. Heapify 1

int check(int x) {
    while (x % 2 == 0) x /= 2;
    return x;
}
void solve() {
    int n; 
    cin >> n;
    vector<int> arr(n + 1);
    for (int i = 1; i <= n; i++) cin >> arr[i];

    for (int i = 1; i <= n; i++) {
        if (check(i) != check(arr[i])) {
            cout << "NO" << endl;
            return;
        }
    }
    cout << "YES" << endl;
}
»
7 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится -13 Проголосовать: не нравится

Can i go to the mars if i submitted AI-WA code? I asked AI to give me WA code.

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

absolute cinema

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Beautiful contest

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

《Also, note the rule restricting the use of AI. If you are caught while breaking this rule, you will be sent to cry's new basement on Mars without oxygen.》

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Я списал в див 3 никто незаметил вхахахахаххахах

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Я списал в див 3 вхахахахахаххах

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

As a tester, I did test and I hope you enjoyed the round :)

»
7 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

For problem H, generating 27 triangles for 9x9 is not an easy task just using pen / paper.

I wrote a seperate bruteforce code for 9x9 case, and with some backtracking and pruning i could find a solution for 9x9 in roughly 20 sec. Then I hardcoded this in my main solution as mentioned in editorial.

Is this actually expected, did anybody find 27 triangles just by pure pen/paper method. If yes, do share your idea, how you actually found those, was it just by pure luck, or any logic involved.

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

As a tester, I forgot to post some outdated memes here before the contest.

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hi, i cannot see any change in my rating post this contest, could someone tell me why is that so?

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

chromate00 you are so cute

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

It's a pity that the competition is unrated.

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

the topic of trees is very complex

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hi. I've registered as for the rated part and I have been solved 4 problems, but my rating is not changed!

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Easy O(n) solution for B

//this is code
#include <bits/stdc++.h>
using namespace std;
void fastIO()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
}
#define rep(i, a, b) for (int i = a; i < b; ++i)
#define rrep(i, a, b) for (int i = a; i >= b; --i)
#define ll long long int
#define srt(arr) sort(arr.begin(), arr.end())
int main()
{
    fastIO();
    int t;
    cin >> t;
    rep(p, 0, t)
    {
        int n;
        cin >> n;
        vector<int> a(n);
        bool possible = 1;
        rep(i, 0, n)
        {
            cin >> a[i];
            if (a[i] != (i + 1))
            {
                if (max(a[i], i + 1) % min(a[i], i + 1))
                {
                    possible = 0;
                }
                int divisor = max(a[i], i + 1) / min(a[i], i + 1);
                if (divisor & (divisor - 1))
                {
                    possible = 0;
                }
            }
        }
        if (possible)
        {
            cout << "YES";
        }
        else
        {
            cout << "NO";
        }
        cout << endl;
    }
    return 0;
}
»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

As a human,give me contribution!

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

HELLO MY NAME IS CRISTIANO RONALDO SIUUUUUUUUUUUUUUUUUUUUUU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hello,

I would like to ask for a manual review of my submission for 2195F, since it was flagged for similarity.

During the contest, I approached the problem from a mathematical point of view. For two quadratic functions f and g, I looked at their difference:

h(x) = f(x) - g(x)

This is also a quadratic, and I used the fact that if two functions never intersect, then h(x) has no real roots, which means the discriminant is negative (or the degenerate case when both A and B are zero).

From there, I treated this as a kind of ordering between functions and applied a simple O(n^2) DP after sorting them. I computed the longest chain ending at each function and starting from each function, and combined both values.

I didn’t explicitly build a graph; I just used nested loops and a direct comparison function.

I understand that this approach is quite natural for this problem (checking discriminant + DP), so I can see why multiple solutions might look similar structurally. However, I wrote the code independently during the contest and did not share it or use any external sources.

I would really appreciate it if my submission could be reviewed manually.

Thank you.