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

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

Hello, Codeforces!

I, along with AlperenT, Ari, BucketPotato, ScarletS, and ToxicPie9, would like to invite everyone on Codeforces to the April Fools Day Contest 2023! The 11th April Fools Day Contest will take place on Apr/01/2023 17:35 (Moscow time). This is a joke competition in which solving the problem is often easier than figuring out what the actual task is.

Please note that the round is unrated.

In this round you'll be given $$$n$$$ weird problems and 2 hours to solve them, where $$$7 \leq n \leq 12$$$. At most $$$\sqrt{n}$$$ of the problems will be interactive. The contest will use ACM ICPC rules (no hacks, the standings are decided by the number of solved problems and penalty time earned on them).

You can submit solutions in any language allowed by Codeforces, unless the problem says otherwise. To get an idea of what the contest will look like, you can check out the contests of the past years: 2012, 2013, 2014, 2016, 2017, 2018, 2019, 2020, 2021, 2022.

Good luck, and have fun!

UPD1: Thanks willy108 for testing!

UPD2: The editorial is released!

UPD3: Congrats to the winners!

  1. InternetPerson10
  2. Geothermal
  3. A_G
  4. Maksim1744
  5. LJC00118

And congrats to the first solvers!

UPD4: Sorry for the inconvenience, the contest is now open for practice submissions + virtuals.

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

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

As an author, give me contribution

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

Who Tested?

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

Make it rated

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

My first april fool contest. Hope it would be funny

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

Ac round 5

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

Hoping it to be unrated like last time :)

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

    well it's written there

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

      I guess people didn't understand my sarcasm, explaining my joke to you :)

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

I am from Switzerland.

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

Is this actually unrated or is that a prank ..?

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

I wish to see the foolest problems ever made in codeforces!

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

I read some of past years problems and understood none of them :/ is it normal?

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

Is it rated ?

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

ok, I pull up!!!

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

Okay, so this year I have to print willy108 :)

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

Every previous years questions SHOCKED me, especially last year's first question lol

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

Are the problems somehow related to the tasks in Ohio?

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

Ahhh .. you should have told it's rated. And after contest, surprise!

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

at the end when it's time to begin the contest you will say we make you fool there is no contest today.

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

Good luck!

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

As a commentator, give me a contribution

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

Please upload the editorial as soon as possible!

Much needed

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

Lol, my best performance on codeforces was in contest for fools

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

me participating for the first time in april fool contest:

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

SecondThread Please tel me you will upload screencast of the contest :D

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

Hints: $$$\newline$$$ A: print("security") $$$\newline$$$ D: print(0) (0/2 = 0 — so we disproved the collatz hypothesis:)) $$$\newline$$$ E: print(0) (any number here) $$$\newline$$$ J: give me AC $$$\newline$$$

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

wtf how to solve F? I tried to delete a numbers to 7,13,19 and my draft was corrupted

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

How F QAQ

  • »
    »
    13 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится
    Spoiler
»
13 месяцев назад, # |
Rev. 6   Проголосовать: нравится +9 Проголосовать: не нравится

Great contest. Solved ABDEFJ.

Python code for solving F
My answer for J
»
13 месяцев назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

What is the solution of B? I got it by trying 40+ times (15, 20, 21 are NO, others YES) but what is the logic?

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

Now contest is over. Can you please tell me what was that dammnn mysterious language!!!

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

Zeroforces round

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

Contest not for fools...

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

The best round ever (with pinely round)

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

How to solve C? I think it might relate to 3, 1, 4.

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

sample choice in C was genius

Spoiler to the problem
»
13 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Please!, allow the practice...
ASAP,
Thank you

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

G????

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

got trolled so hard by D

»
13 месяцев назад, # |
  Проголосовать: нравится +9 Проголосовать: не нравится
my code for B
»
13 месяцев назад, # |
  Проголосовать: нравится +91 Проголосовать: не нравится

Who spent several minutes trying to find long Collatz sequences for D like me? :raising_hand:

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

Solution A-E

A:read the picture:security

B:note that it is "was it rated". you can find that codeforces round 1 is rated and round 15 is unrated. In the first 25 test,only round 15,20,21 are unrated.

C:t<=32 and sum of n<=155,around t*5, so you can guess that it is n is a random number between 0 to 9. As 2*1*4=8,7=7,1*2*3*5=30, you can guess that n is 31415926... and the answer is the product. the sum of the first 32 digits of pi is also actually equal to 155.

D:there is no limit of n>0.

-7 -> -20 -> -10 ->-5 -> -14 -> -7

E:the difference is 10^6 not 10^-6. if you set a=0,the condition will be always satisfied.

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

This was a lot of fun, thank you :)!

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

    Hii. Could you solve the was it rate problem? I tried too many methods but I could not solve it. Can u explain me how did u solve it?

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

      It asks whether the n-th round on Codeforces was rated. Specifically, beta rounds 15, 20 and 21 were unrated

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

      In the first 25 rounds of codeforces's history, round 15, 20 and 21 were unrated.

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

My best performance came in an April fool contest lol. Can't wait for my rating to increase. Important life lesson, I will always remember to say please to the AI overlord who is going to take over.

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

What is the solution process for I?? Solution for I makes no sense to me

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

    A person is climbing a mountain. We notice that the vertical line of the letter 'b' is upward, indicating that the person has moved up one unit. The vertical line of the letter 'p' is downward, indicating that the person has moved down one unit. Count all letters in the string that have this up-down feature. Increase the count by 1 when encountering an upward letter, and decrease it by 1 when encountering a downward letter. The initial height is 0. Output NO only when the height becomes negative at some point or the person finishes climbing the mountain (processing the entire string) with a non-zero height. Otherwise, output YES. That's my inference.

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

    English letters have "ascenders" and "descenders": ascenders are parts of a letter that extend above a baseline, descenders parts that extend below. For example, normal letters are "a", "x" or "z", letters with ascenders are "f", "l" or "k", letters with descenders are "y", "g", "j" etc.

    So apparently the idea is that you keep track of the height and you increase by 1 when you encounter an ascender, decrease by 1 if you encounter a descender. A word is valid if you start and end at 0 without going below 0.

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

please make it rated

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

Thanks for this contest, made my day!

Also binary searching to deduce each test case for B was fun XD, later I noticed there were few "NO"s so guessed the 22nd test case but was fun lol. Most submissions I have ever made in a contest.

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

How do they got accepted for the second problem(was it rated?) without the wrong answer?

  • »
    »
    13 месяцев назад, # ^ |
      Проголосовать: нравится -26 Проголосовать: не нравится

    just cheating

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

      Or maybe they correctly guessed that it was — whether the $$$n$$$ th round of Codeforces was rated or not.

      • »
        »
        »
        »
        13 месяцев назад, # ^ |
          Проголосовать: нравится -29 Проголосовать: не нравится

        correctly guessed from 2**25 possibilities?? bullshit!

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

          actually you don't need 2^25 (and btw its 2^23 cuz there are two examples), you only need to keep doing binary searches with the 25 numbers using submissions and then you can find the other two unrated numbers.

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

    I went to the standings page (eg: https://codeforces.com/contest/15/standings) and checked to see if the "Rating Changes" tab was there or not.

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

    You needed to check which of the first 25 codeforces contests were rated.

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

    I looked at the cached versions of the announcement blogs on Google for each of the contests (blogs were disabled at the time I solved the problem) to see if the contest was rated.

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

    I opened the first 25 contests and checked if it's rated or not

    the unrated contests of 25 contests are 15 20 21

    I solved it using the problem name it's rated?

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

      You can open the standings table of a contest and if the rating changes option is absent, then it is unrated :D

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

Happy to see an April Fools Day Contest with no domain knowledge such as plots or characters in a specific movie. Great contest!

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

Is J judged by a LLM or a bunch of ifs?

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

Was quite frustrated with multiple wrong answers for D, but couldn't help laughing out loud when I saw the solution. XD
Great problems, keep it up! :)

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

amazing! Problom J is so interesting. Did you judge it by a LLM?

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

It's very funny reading the inputs of participants for last question (Unmysterious Language).But finally it seems like we must use the word "Please" for AC

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

Please do the rating update quickly and make me CM >_<

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

the one who got I is a genius

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

Thanks, you successfully proved I am a fool.

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

How does the spj for D work?

Are there any conclusions that $$$\forall 1\le n \le 10^{10^3}$$$, it will finally become $$$1$$$ in less than $$$10^{18}$$$ times?(That is, all positive integers do not work)

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

What is the Solution of

It was rate problem?

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

Problem G: If you download the image and check the hex code, you will get 01722b, which is the problem 1722B - Colourblindness.

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

    Man I checked the rgb but I tunnel visioned on R=1 lol.

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

This contest is disaster, total waste of time.

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

Thanks ChatGPT for answering questions!

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

Will upsolving be available?

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

When can I send solutions if I can't do it virtual

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

Why I can't submit my code?

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

Where is the editorial? I want to know the solutions :)