chromate00's blog

By chromate00, 3 months ago, In English

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

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

»
3 months ago, hide # |
 
Vote: I like it -28 Vote: I do not like it

First!

»
3 months ago, hide # |
 
Vote: I like it +12 Vote: I do not like it

obligatory tester comment

»
3 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it +20 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it +37 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it +17 Vote: I do not like it

As a tester, Chromate = Chromaid.

»
3 months ago, hide # |
Rev. 2  
Vote: I like it +3 Vote: I do not like it

Wish to enjoy the problems

»
3 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

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

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

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

GLHF!

»
3 months ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it +17 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

cry should tell Elon Musk how to build basements on Mars

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

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?

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

As a tester, when did i test this?

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

ahh, another Div3

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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?

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Best of Luck everyone

»
3 months ago, hide # |
Rev. 2  
Vote: I like it +3 Vote: I do not like it

When will there be cry's digital basement?

»
3 months ago, hide # |
 
Vote: I like it +12 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Can I go to mars now?

»
3 months ago, hide # |
Rev. 3  
Vote: I like it +6 Vote: I do not like it

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?

»
3 months ago, hide # |
Rev. 2  
Vote: I like it +8 Vote: I do not like it

Change in time?

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

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

»
3 months ago, hide # |
 
Vote: I like it +2 Vote: I do not like it

what does 7 or 8 problems even mean?

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

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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......

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

This contest truly is Absolute Cinema

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

lets goo

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

loved the choice of numbers by authors

»
3 months ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

Mathforces !

»
3 months ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

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
  • »
    »
    3 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    upd: holy fk im dumb (i was running the samples on Problem E still lmao

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

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

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How can D have so many acc?

  • »
    »
    3 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    It was easy math based, If you observed and calculated f(x),f(x-1),f(x+1), You would get it. The idea to calculate f(x),f(x-1),f(x+1) was that the modulus would be same around +1 and -1 of x.

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

There were some Einsteins on the exam.

J1_1_1 Be_ast MaxLim overlord_god

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

Is Binary Lifting involved in Problem G ?

  • »
    »
    3 months ago, hide # ^ |
     
    Vote: I like it +1 Vote: I do not like it

    I had the same intuition to reach the highest ancestor which can be reached in time <= querytime but then again i went blank on how to find the exact node we'll reach with leftover operations

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How to do F?

»
3 months ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it +2 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

SOOOOOOO MANY CHEATER HOW TO SAY THEM

TheKrrish -->look at just the codes

Adham

AbhiIron

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

YARISDA EINSTEINLER VAR IDI

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it +7 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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 ^-^

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

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

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;
}
»
3 months ago, hide # |
Rev. 2  
Vote: I like it -13 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

absolute cinema

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Beautiful contest

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

《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.》

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

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

»
3 months ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

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.

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, hide # |
 
Vote: I like it +2 Vote: I do not like it

chromate00 you are so cute

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

It's a pity that the competition is unrated.

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

the topic of trees is very complex

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

  • »
    »
    3 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Normally, for a Div.3 contest,it will change your rating in 24-48h after the contest.

    • »
      »
      »
      3 months ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      Well it's now about 10 hours that the contest hacks are closed an contest is officially finished. So as you said I should wait till night or maybe tomorrow. BTW thanks.

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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;
}
»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

As a human,give me contribution!

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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.