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

Автор nik_exists, 2 месяца назад, По-английски
#include "codeforces.h"
#include <chrono>
#include <vector>

using namespace std;
using namespace std::chrono_literals;
using namespace cf;

int main() {
    Blog announcement("Codeforces Round 1119 (Div. 3)");

    announcement << "Hello Codeforces!\n";
    announcement << "I am delighted to invite you to participate in " << Codeforces Round 1119 (Div. 3) << "!\n";
    announcement << "The problems were written and prepared by " << nik_exists << ".\n\n";

    announcement << ContestInfo {
        .start_time = 05.09.2026 17:45 (Московское время),
        .duration = 2h + 15min,
        .number_of_problems = 7,
        .subtasks = true // possibly not adjacent
    };

    announcement << RatingRules {
        .rated_for_rating_below = 1600,
        .unrated_registration_allowed = true,
        .trusted_max_rating_below = 1900,
        .trusted_min_rated_rounds = 5
    };

    announcement << JudgingRules {
        .scoring = codeforces::ICPC,
        .wrong_answer_penalty = 10min,
        .open_hacking_phase = 12h,
        .final_tests = after_open_hacks
    };

    auto is_cheater = [](User user) {
        // https://codeforces.me/blog/entry/133941
        if (user.used_ai_in_contest()) return true;
        if (user.discussed_problems_online_before_contest_end()) return true;
        if (user.violated_other_rules_im_too_lazy_to_list()) return true;
        return false;
    };

    for (auto user : get_users(2259)) {
        if (is_cheater(user)) user.send_to_cry_basement();
    }

    announcement << Acknowledgments {
        .coordinator = cry,
        .russian_translation = Vladosiya,
        .red_testers = {__baozii__, AksLolCoding, awesomeguy856, nifeshe},
        .golden_testers = {Arpa, Intellegent, Proof_by_QED, temporary1},
        .purple_testers = {Argentum47, Euclid73, Jteh, Lilypad, SpyrosAliv, nimoxide, omsincoconut, wakanda-forever, yse},
        .blue_testers = {CatsAreCool, Vladosiya, chromate00, fatespeaker, linearspace, reirugan, simplelife},
        .green_testers = {hannah12345},
        .codeforces_and_polygon = {KAN, MikeMirzayanov}
    };

    announcement << "\nBest of luck, and thank y'all so much for competing!\n";
}

EDITORIAL

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

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

Looking forward to some good problems

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

Orz announcement by nik_exists!

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

Sorry sir, your code got a CE

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

Such an interesting announcement! Hope the problems will be interesting as well

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

As purple_testers[1] I suggest you all should take this high quality round.

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

...

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

blog main() {
    codeforces::comment << "As a tester, I actually didn't test :3";
    return 67;
}
»
2 месяца назад, скрыть # |
 
Проголосовать: нравится +15 Проголосовать: не нравится
import codeforces

def get_comment():
    return "As a tester, " + "nik_exists deserves 998244353 contribution for making such an amazing round!"

if __name__ == "__main__":
    comment = get_comment()
    blog_id = 156327
    codeforces.post_comment(blog_id, comment)
»
2 месяца назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

As a tester, DO NOT CHEAT and destroy this amazing round. Good luck <3

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

Suggest Profile Picture i will put it if reached Puiple in this Round

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

As a tester, I lack the creativity to write a good tester comment.

I wish all good luck and enjoyment of the contest!

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

As not a tester and not rated nik_exists could you please explain the mysterious man in the tester list named wfmexgdcodegcdcodeeiaTestsNumT also orz purple_testers[1], blue_testers[3], gray_testers[2]

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

As a tester, I have not tested the announcement blog.

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

as a tester, I'll leak the problems if you send me $5

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

when i first looked at this blog i thought cf got hacked

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

i have not seen this kind of creative blog of a Div

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

When I first saw this, I thought you'd accidentally posted some AI-generated garbage.

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

send to cry basement ☠️

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

Non — C++ users reading this blog: ._.

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

peak Announcement.

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

looking forward to some good problems (right between my midterms XD)

also peak announcement!

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

It is very code style

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

I like this kind of announcement.

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

u don't have any cyan testers , p.s I am willing to contribute to testing , if u need one :)

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

I hope l can solve some problems

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

program.cpp:1:10: fatal error: codeforces.h: No such file or directory 1 | #include "codeforces.h" | ^~~~~~~~~~~~~~ compilation terminated. Command exited with non-zero status 1

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

why keep to clustering testers by color?

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

for some reason this code is giving compilation error

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

fatal error: codeforces.h: No such file or directory 1 | #include "codeforces.h" | ^~~~~~~~~~~~~~
»
2 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится
announcement << RatingRules {
    .rated_for_rating_below = 1600,
    .unrated_registration_allowed = true,
    .trusted_max_rating_below = 1900,
    .trusted_min_rated_rounds = 5
};

So you mean that I can’t be rated in div.3?

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

orz announcement!

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

wow! amazing announcement

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

cool concept for announcement, orz

But I hope problem statements are sweet and easy to understand.

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

unique announcement

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

print('I don't know formatting nor C++ so just imagine this is a comment glazing the announcement')

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

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

cry's basement is still working

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

It's look like instead of problem they pasted the solution

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

lesss effin' goooo what an announcement!

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

Russian translator is also Expert... 0_0

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

hi

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

Imma rank up on this one fs.

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

Isn't there any weight of problem ?

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

PEAK announcement

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

Thanks everyone for participating in Codeforces Round 1119 (Div. 3). Although it was initially difficult to understand from the editorial when I first participating in Codeforces contests. However I found that once I got used to it, the explanations felt very easy to understand, accurate, and highly academic.

We should read the hint and solution before reading code (Sorry for my bad English)

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

Codeforces needs to take stricter action against cheaters.

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

Blog is so orz that it got +857 Upvotes and nik_exists is 13th in top contributors list

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

Dude made a codeforces.h and didn't include vector in that??

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

Newbies is getting a headache today bro...

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

int main(){
    comment << "Cool announcement, hope get rating up! \n"
    return 0;
}
»
2 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится
#include <bits/stdc++.h>
#include <codeforces>

using namespace std;

int main() {
    cout << "Best announcement ever\n";
    cout << "I hope the problems aren't hard\n";
    return 0;
}
»
2 месяца назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

python users have been real quite since this dropped

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

No return 0; hurts

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

good

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

is this the best ever contest post?

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

It's the nerdiest announcement I have ever seen.

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

Nik_exist got to top 10 contributor thanks to this blog

»
2 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится
#include "codeforces.h"
using namespace cf;

comment << "orz announcement" << post;
get_contest(2259).register()
»
2 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Loved the creative announcement format.

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

Such an interesting announcement! Hope the problems will be interesting as well

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

w cf announcement!!!!!! but shouldn't it be send_to_cry_basement(user) since surely nonusers are also sent to cry's basement, like mr sean p combs.

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

This code doesn't compile. Can somebody help me?

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

i have by mistakenly chosen for unrated and now i am not able to make it rated for me .Please help.

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

    You should be able to unregister. I believe if you click on participants page (by clicking on the number of people participating) there should be a blue box at the top where you can click unregister. You then should be able to reregister as rated.

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

This announcement has more rating points than me

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

This announcement is basically a Pupil :)
Updated: Specialist now :)

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

I Hope that we can learn something from this contest. Which this occurs when the problems are difficulty-optimized.

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

S/he is literally 5th in Top Contributors rn orz blog

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

As a participant , I hope this will increase my rating :)

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

is this rated for me ? im 1660

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

Acknowledgements should be Acknowledgments

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

Who can fly?

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

Very creative way of announcing the contest <3

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

Unusual Style Changes in Codeforces Round 1119 (Div. 3)'s Announcement

As we all know, The announcement of Codeforces Round 1119 (Div. 3)'s Announcement is very unique and well made. However, I, an unmentioned tester of the announcement code haven't been paid nik_exists life savings ($1), and so I shall expose the person behind the coding once and for all.

As a reference, here's his code:

Spoiler

First of all, his variable names are really long. This would be an ass excuse if he used long variables inside of his code, but he doesn't even mention them! He also uses comments which he also usually doesn't use. These 2 combined show a clear sign of AI assistance. He even uses a diffirent template, that doesn't include all the basics such as #!

Second of all, he uses the damned .violated_other_rules_im_too_lazy_to_list() thing??? (idk C++) We all know that using that module (??) is very very bad as it can cause MLE and TLE AND it doesn't include the newer rules such as being orz like [user: nick exist]. THis is a clear sign of artificial intellogonce.

Here are some other smaller things.

  • He eats guacamoli.
  • All his submissions would have gave him -6700000 contribution if not for me (I have 10k accounts to upvote him back uptop). THat is not a clear sign of AI use. but i'm gonna put it here regardless because i have to write false cheater expose blogs instead of upsolving
  • UMmmmm

Really long jokes aside nik_exists is genuenily dodging negativity like droplets in the shower. Like look at what he writes and tell me he isn't tourist for blogs

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

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

Cool way of dropping announcements

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

this code does not compile, is codeforces.h an open source library ? hahah

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

as a participant I can confirm that nik really exists

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

why contest got pushed back؟

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

Delayforces

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

yep my bedtime is delayed

»
2 месяца назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +30 Проголосовать: не нравится
In file included from codeforces.h:1119,
                 from announcement.cpp:1:

announcement.cpp: In function 'int main()':
announcement.cpp:15:23: error: invalid contest start time: expected 'Sep/05/2026 17:45 (Moscow time)', got 'Sep/05/2026 17:35 (Moscow time)'
   15 |         .start_time = Sep/05/2026 17:35 (Moscow time),
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                       Sep/05/2026 17:45 (Moscow time)

codeforces.h:2259:19: note: Codeforces Round 1119 (Div. 3) is scheduled to start at 17:45 Moscow time
 2259 |     static_assert(start_time == 17_h + 45_min,
      |                   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~

codeforces.h:2259:30: note: the comparison reduces to '(17:35 == 17:45)'

announcement.cpp:15:44: error: contest starts 10 minutes later than you think
   15 |         .start_time = Sep/05/2026 17:35 (Moscow time),
      |                                            ^~~~~~~~~~~
      |                                            go fix it bro

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

as a tester, i now have to wait 10 more minutes

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

10 min delay?

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

The contest got delayed, I wonder what the reason could be.

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

why a delay??!!

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

why the competition is delayed for 10 minutes?

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

Thanks for the extra 10 minutes!

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

Why delayed?Don't waste my time to sleep.

»
2 месяца назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится
$$$22:35 \to 22:45$$$

me: ...

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

delayYYY

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

What's up??

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

Amazing problems!

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

Interesting competition, thank you very much!

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

D and E were amazing problems, thank you!

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

how the hell do you solve B??

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

    take the max of the counts of the numbers which are: odd, 0 mod 4, 2 mod 4

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

    The answer was $$$\max(cnt_0, cnt_2, cnt_1 + cnt_3)$$$, where $$$cnt_k =$$$ #{ $$$a_i \equiv k \pmod{4}$$$}.

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

    Parity of the numbers does not change. So, all the odd numbers eventually reach 1. All the even numbers reach either 0 or 2. Evens divisible by 4 form one group and those not divisible by 4 form the other. Simply return the maximum group size among the three groups.

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

Best round ever! (especially E)

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

Great contest!

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

This is a very good contest! I enjoyed E a lot, it was amazing :)

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

Really enjoyed the round, hopefully I become specialist!

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

Thank you for the contest and 6 7 joke was really funny "... six or seven seas ..." (Problem E).

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

F is really nice!

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

B felt harder than C and D

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

Nice contest, enjoyed all the problems

I couldn't implement G and H in time because I wasn't really focused but is G binary searching on a min segtree of difference array prefix sums and H is counting number of 2sat arrangements?

I tried to look up how to count number of 2sat arrangements but couldn't find anything useful at least not on duckduckgo, how do we do this?

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

    Feel like being helpful so here's solution sketches for A-F

    A: Simulation, just add 1 to the output for every block that doesn't contain a 0

    B: Max of the amount of odd elements, amount of even elements divisible by 4, and amount of even elements not divisble by 4

    C: Replace -1 with 1 if it isn't between two 1s or -1s otherwise replace it with 0

    D: If the count of 0 is 0 shove everything into A, if the count of 0 is 2 or 3 shove the first 0 into A, the rest of the 0s into B and everything else into C, otherwise impossible

    E: For each non-0 or -1 element "ban" the range of elements where treasure can't be present, put treasure in all the unbanned spots, and check if the array matches up with your construction

    F: Notice that the operation is equivalent to deleting the first 1 or last 0 in number of inversions, and 0s at start and 1s at end don't matter, simulate this with a deque

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

    Counting number of 2-sat arrangements is np-hard. Considering the possible forms of pairs can be helpful.

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

    a[j+1] — a[j] <= k => a[j] <= a[i-1] + (j-i)*k, j > i after deleting a[i]

    cost = ∑ max(0, a[j] — a[i-1] — (j-i)*k), j > i

    Define, b[j] = a[j] — j*k cost = ∑ max(0, b[j] — (b[i-1] — k)), j > i

    This can be answered in O(logN) time using two BITs, one for sum and another for count. Proceed from right to left.

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

Orz announcement! nik_exists wrote the whole announcement in C++ just for it to fail compilation on pretest 1

The joke is that the announcement is written like a competitive programming submission, so naturally it deserves to be judged like one too. Sadly, it did not survive the first test.

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

I think I solved F like 3 minutes after the contest ended :(

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

codeforces has pushed me to think in ways like I have never done before. I really enjoyed these challenges. Thanks for the great problems, contest, and platform!! <3

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

Now that the contest is over, what's the distribution?

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

Any idea how long it will take before we’re able to submit the solution?

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

Is the hacking round open? All I see is system testing.

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

Solved A, B, C, D, G. G, in particular, was enjoyable :)

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

For question E why this approach doesn't pass. I just tried to find intervals where you must place zero and merge them.

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

    i dont think you checked that your construction gives the right numbers

    • »
      »
      »
      2 месяца назад, скрыть # ^ |
      ← Rev. 3  
      Проголосовать: нравится 0 Проголосовать: не нравится
      #include <bits/stdc++.h>
      using namespace std;
      #define int long long
      #define all(x) (x).begin(), (x).end()
      #define pb push_back
      using pii = pair<int, int>;
      
      vector<pii> mergeIntervals(vector<pii>& intervals) {
      	if (!intervals.size()) {
      		return vector<pii>();
      	}
      	vector<pii> res{intervals[0]};
      	for (int i = 1; i < intervals.size(); i++) {
      		int l = intervals[i].first, r = intervals[i].second;
      		int p_r = res.back().second;
      		if (l > p_r) {
      			res.push_back({l, r});
      		} else {
      			res.back().second = max(r, res.back().second);
      		}
      	}
      	return res;
      }
      void solve() {
      	int n;
      	cin >> n;
      	vector<int> b(n);
      	for (int i = 0; i < n; i++) {
      		cin >> b[i];
      	}
      	vector<pii> intervals;
      	vector<int> res(n, -1);
      	for (int i = 0; i < n; i++) {
      		if (b[i] > 0) {
      			int l = max(1LL * 0, i - b[i] + 1);
      			int r = min(n - 1, i + b[i] - 1);
      			intervals.pb({l, r});
      		}
      		if (b[i] == 0) {
      			res[i] = 1;
      		}
      	}
      	sort(intervals.begin(), intervals.end());
      	vector<pii> merged = mergeIntervals(intervals);
      	for (auto p : merged) {
      		int l = p.first, r = p.second;
      		for (int i = l; i <= r; i++) {
      			if (res[i] == 1) {
      				cout << -1 << "\n";
      				return;
      			}
      			res[i] = 0;
      		}
      	}
      	for (int i = 0; i < n; i++) {
      		if (res[i] == -1) {
      			res[i] = 1;
      		}
      	}
      	int count_ones = 0;
      	for (int i = 0; i < n; i++) {
      		if (res[i] == 1) {
      			count_ones++;
      		}
      	}
      	if (count_ones == 0) {
      		cout << -1 << "\n";
      		return;
      	}
      	for (int i = 0; i < n; i++) {
      		int cur = b[i];
      		if (cur == -1) {
      			continue;
      		}
      		int l = i - cur;
      		int r = i + cur;
      		bool ok = (l >= 0 && (res[l] == 1)) || (r < n && (res[r] == 1));
      		if (!ok) {
      			cout << -1 << "\n";
      			return;
      		}
      	}
      	for (int i : res) {
      		cout << i;
      	}
      	cout << "\n";
      }
      int32_t main() {
      	ios::sync_with_stdio(false);
      	cin.tie(nullptr);
      	int t;
      	cin >> t;
      	while (t--) {
      		solve();
      	}
      }
      

      Such check is enough ? During contest, I misread test case... and gave up on that check. Thank you .

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

    see

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

Strangely, why is the system testing period so long?

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

Why did the system testing stop at 100%?

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

Was H graph dp?

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

Nice round, enjoyed the problems. I think the round was well-balanced, had interesting ideas, while also having some educational aspects in problems.

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

This was such a fun round for me. I really liked this collection of topics and problems. One question though, why is testing taking so long? I really want to test my H solution that I solved 10 minutes after the end of the round... :D

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

Easy H. Good problemset otherwise

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

very cool contest announcement!

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

Hello Codeforces team,

My submissions in Codeforces Round 1119 (Div. 3) — were marked as “Skipped” with the message: “Your submission in contest has been skipped due to rule violation.”

I have not received any separate message explaining which rule was violated or stating that my solutions significantly coincided with another participant's solutions.

I wrote my solutions myself during the contest and did not intentionally violate any contest rules.

Could you please clarify which specific rule was violated and, if possible, manually review my submissions?

My submission IDs are:

389482042, 389497102, 389530884, 389536163, 389543036, 389550466, 389551674

Please also let me know if any additional information, source code, explanation, or other action is required from my side to help resolve this issue. I am happy to provide whatever is needed.

Thank you.

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

I participated in Codeforces Round 1119 (Div. 3) with the intention of participating in rated mode. I did not intentionally choose unrated registration. However, my contest history shows no rank/rating change. Could you please check my registration status and, if possible, count my participation as rated? My handle is ny97325

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

Hello,

My handle is siddarth_56832dsds.

I received a message that my submissions in Contest 2259 were skipped due to a rules violation.

I would like to request clarification and a review of this decision. Could you please provide more information about the reason for the violation?

Thank you.

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

Subject: Request for review of Contest 2259 rules violation

My submissions in Codeforces Round 1119 (Div. 3) were skipped due to a rules violation.

I would like to request a review of this decision, as I believe there may have been a misunderstanding regarding my submissions.

The algorithms and approaches used in my solutions were developed by me. My submitted code also contains some pre-written templates and comments that I regularly use, which may have contributed to similarities detected in my submissions. However, I do not know the specific reason for the rules-violation decision.

I would be grateful if my submissions could be manually reviewed and if you could let me know what specifically caused the rules-violation decision.

My submissions are:

A — 389473785 B — 389490535 C — 389508799, 389510435 D — 389538097 E — 389551316

Thank you for taking the time to review my case.

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

Codeforces should add report button to point out users who are using Ai to inflate the ranks.

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

Probably best div3 ever

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

Hello coordinators,

My submissions for yesterday's contest (problems A, B, C, and E) were all marked as "Skipped" due to a rules violation (Handle: jahans_02).

I wrote all of my solutions completely from scratch during the round using VS Code on my local machine. I did not use any online compilers, share my code with anyone, or look at any external sources during the contest.

Could the coordinators or system administrators please review my case to check if this was an automated false positive? I am happy to explain the logic behind any of my solutions if needed.Thank you for your time and help!

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

My submissions in contest 2259 — Codeforces Round 1119 (Div. 3) were skipped because of a rules violation.

The affected submissions are:

389481263 — A 389497868 — B 389530416 — C 389531630 — C 389548022 — D 389568061 — E

All of these submissions were made during the contest.

I am not aware of violating any contest rules, and I would like to understand what caused this decision. If this was a false positive, I would greatly appreciate a manual review of my submissions.

Could the admins please review my case and clarify which rule was considered violated?

Thank you.

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

    same happened with me

    Could the coordinators or system administrators please review my case to check if this was an automated false positive? I am happy to explain the logic behind any of my solutions if needed.Thank you for your time and help!

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

can someone explain why this went wrong?389560130

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

'E' gave me severe headaches

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

I think this contest is absolutely amazing.

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

I have a genuine question why this announcement got 1.8K up votes i agree the contest is good but for any contest announcement i never saw these many upvotes till now

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

I think e is a good problem

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

As a newbie, I hope everyone have great fun and higher ratings!

Someone pls help im too low on rating

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

Its quite crazy to see how nik_exists has climbed up the top contributor ladder with just one blog post O.O

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

low.

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

Great Contest

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

absolute cinema

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

bro used "golden_testers" instead of "yellow_testers" btw