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

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

Hello Codeforces!

I am glad to invite you to InfOJ April Fools Day Contest 2025 (IAFDC for short) which will start on April 5th 2025, 19:00 UTC+8. The problem setters are me and gyh20. This is not a joke: the contest will really be held!

The contest will last for 2.5 hours with 10 tasks for you to solve. All problems are worth 100 points, and the contest will be in IOI mode with standings. You can see the past problems here.

Why is April Fool's Contest not on April Fools Day?

From the year 2023, the contest has always been held on April 5th, to match the Tomb Sweeping Day's break in Chinese schools.

Language of Problem Statements

We will provide English statements for all problems.

However, in the past several years, only Chinese statements are available. If you want to read these problems, you can use any LLM tool to translate them into English. Since the statements are almost always very short and clear, the LLMs have a high chance of not making any mistakes.

Highlights of this year's IAFDC

This year, we are planning to introduce problems that your submitted code can call external LLM API-s. For example, there might (or might not) be a problem that, you can write the following code:

#include "llm.h"

int main(){
    string str = "Who are you?"
    string res = ask_LLM(str); // res may be equal to "Greetings! I'm DeepSeek-V3, an artificial intelligence assistant created by DeepSeek. I'm at your service and would be delighted to assist you with any inquiries or tasks you may have."
}

However, be careful enough when using such functions, because the return value and the time taken to return the answer are unpredictable.

What are the problems of IAFDC like?

Since 2021, InfOJ has held four April Fool's Contests. Each year, we uphold the mission of "expanding the boundaries of the online judging system" and present freshly eye-opening problems to a wide range of participants, both with and without competitive programming background. We are committed to leveraging the versatility of the open-source UOJ System (which InfOJ is based on) to provide testing for problems that cannot be judged on other online judging systems. Here are some examples of such problems from past years:

  • Problem A from IAFDC 2024. Statement: you need to print an integer in $$$[0,2\times 10^9]$$$.
Solution
  • Problem A from IAFDC 2023. Statement: Print your birthday.
Solution
  • Problem F from IAFDC 2024. Statement: Submit the yellow chicken. (There is an image of a yellow chicken in the statements)
Solution
  • Problem J from IAFDC 2024. Statement: Print an integer in $$$[0,10^9]$$$.
Solution
  • Problem G from IAFDC 2023. Statement: The test data has been sent to you (but there isn't a download link in the statements). Just write a program that outputs the corresponding output and submit!
Solution

In the previously shown problems, every single element of the OJ, from custom-test to announcements, might be a hint to the problem. Be sure to stay concentrated!

There will also be problems that are codeforces-april-fools-like. You need to guess the problem statement and write the corresponding solution. However, we tend to make the real statement connected with either OJ platforms or interesting facts in computer science. Here are some examples from past years:

  • Problem B from IAFDC 2024. Statement: Given a valid problem ID on InfOJ, print 0 or 1.
Solution
  • Problem A from IAFDC 2022. Title: Infinity. Statement: print a 128-bit 01 string.
Solution

There will be no puzzle-solving or decryption problems which appears frequently in some other OJ's April Fools Contests. We are devoted to make problems as "clean" as possible, and solvable without unfriendly techniques.

To make the contest more approachable, there will be trivial problems that are aimed to make everyone have fun. Here are examples of such problems:

  • Problem C from IAFDC 2024. Statement: Find a shortest hamiltonian cycle in a graph of $$$n$$$ vertices. The length of the edge between vertices $$$i$$$ and $$$j$$$ is $$$\gcd(i,j)$$$.
Solution

Summary

We are looking forward to your participation!

Полный текст и комментарии »

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

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

Thanks for participation!

Update: added alternative solutions/proofs for A,B,D,F

1988A - Split the Multiset

Hint 1
Solution
Code (python)

1988B - Make Majority

Hint 1
Hint 2
Solution
Another Solution
Code (python)

1988C - Increasing Sequence with Fixed OR

Hint 1
Hint 2
Solution
Code (python)

1988D - The Omnipotent Monster Killer

Hint 1
Hint 2
Solution
Another Solution
Code (C++)

1988E - Range Minimum Sum

Hint 1
Hint 2
Solution
Code (C++)

1988F - Heartbeat

Solution
Code (C++, FFT)
Code (C++, Interpolation)

Полный текст и комментарии »

Разбор задач Codeforces Round 958 (Div. 2)
  • Проголосовать: нравится
  • +147
  • Проголосовать: не нравится

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

Hello Codeforces!

I am glad to invite you to Codeforces Round 958 (Div. 2) which will start on Jul/15/2024 17:35 (Moscow time).

The contest will last for 2 hours with 6 tasks for you to solve. The contest will only be rated for those with a rating not higher than 2099, but high-rated competitive programmers are also more than welcome to participate out of competition.

The score distribution is: 500-1000-1000-2000-2500-3500

The contest will be impossible without the help from:

Good luck and have fun!

Update: editorial

Update: video editorial

Полный текст и комментарии »

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

Автор feecIe6418, 4 года назад, По-английски

Hello Codeforces!

On Jun/25/2022 17:35 (Moscow time) we will hold Codeforces Global Round 21.

It is the third round of a 2022 series of Codeforces Global Rounds. The rounds are open and rated for everybody.

The prizes for this round:

  • 30 best participants get a t-shirt.
  • 20 t-shirts are randomly distributed among those with ranks between 31 and 500, inclusive.

The prizes for the 6-round series in 2022:

  • In each round top-100 participants get points according to the table.
  • The final result for each participant is equal to the sum of points he gets in the four rounds he placed the highest.
  • The best 20 participants over all series get sweatshirts and place certificates.

Thanks to XTX, which in 2022 supported the global rounds initiative!

All problems except one are authored and prepared by me. The other problem is authored by gyh20.

We would also like to thank the following people:

Round information:

  • duration: 2 hours and 15 minutes
  • number of problems: 8
  • score distribution: 500-1000-1500-2000-2000-2500-3250-4000

We are looking forward to your participation!

Upd Editorial https://mirror.codeforces.com/blog/entry/103479

Upd Winners!

  1. ksun48
  2. jiangly
  3. Um_nik
  4. Petr
  5. maroonrk

Полный текст и комментарии »

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

Автор feecIe6418, 4 года назад, По-английски

Thanks for participation!

If your solution to D involves any data structures and is not $$$O(n)$$$ -- please read the "solution 1". I believe it is very interesting, but to make the difficulty suitable for D we allowed not $$$O(n)$$$ solutions.

1696A - NIT orz!

Hint 1
Solution

1696B - NIT Destroys the Universe

Hint 1
Hint 2
Solution

1696C - Fishingprince Plays With Array

Hint 1
Hint 2
Solution

1696D - Permutation Graph

This problem has two different solutions. The first one is more beautiful, but less straight-forward.

Hint 1 for solution 1
Hint 2 for solution 1
Hint 3 for solution 1
Solution 1
Hint 1 for solution 2
Hint 2 for solution 2
Solution 2

1696E - Placing Jinas

Hint 1
Hint 2
Hint 3
Solution

1696F - Tree Recovery

Hint 1
Hint 2
Solution

1696G - Fishingprince Plays With Array Again

Hint 1
Hint 2
Hint 3
Solution

1696H - Maximum Product?

Hint 1
Hint 2
Solution

Полный текст и комментарии »

Разбор задач Codeforces Global Round 21
  • Проголосовать: нравится
  • +332
  • Проголосовать: не нравится

Автор feecIe6418, 5 лет назад, По-английски
A Tutorial
A Code
B Hint 1
B Hint 2
B Hint 3
B Tutorial
B Code (Python)
C Hint 1
C Hint 2
C Tutorial
C Code
D Hint
D Tutorial
D Code (Python)
E1 Hint
E1 Tutorial
E1 Code
E2 Hint
E2 Tutorial
E2 Code

Полный текст и комментарии »

Разбор задач Codeforces Round 729 (Div. 2)
  • Проголосовать: нравится
  • +184
  • Проголосовать: не нравится

Автор feecIe6418, история, 6 лет назад, По-английски

I was trying to hack myself in D. It got hacked successfully, but when I resubmitted it, it still passes in 982ms. I was trying to generate a better test so that it definitely couldn't pass.

So I generated another test, and tried to hack, but the system return "Unexpected verdict". Do that mean the system is not working? Or the authors' solution is wrong? Or something else?

I told my friend tianxiawoyou and when he hacks me, the verdict is still "Unexpected verdict". I tried to hack another person, but it seems that the system is working.

Here is my generator (I tried both uploading the generator and the file, but both returns "Unexpected verdict")

code

Полный текст и комментарии »

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

Автор feecIe6418, история, 6 лет назад, По-английски

Hello Codeforces!

gyh20 and I are glad to invite you to Codeforces Round 670 (Div. 2) which will start on Sep/12/2020 16:45 (Moscow time). Note the unusual start time of the round.

The contest will last for two hours, and you will have five tasks to solve. The tasks are prepared by me and gyh20. This round is rated for participants whose rating is not higher than 2099. You can see that my current rating is exactly 2099 :)

There might be an interactive problem. You can learn about them here.

We would like to thank:

We tried our best to make the statements short and clear, pretests strong and problems interesting. We hope you like the problems!

Score distribution will be announced shortly before the round.

Good luck and have fun!

Upd: Score distribution is 500-750-1250-1750-2500.

Upd: For problem reasons, the contest is delayed for 10 minutes. We are very sorry to keep you waiting, sorry again.

Upd: Score distribution is changed to 500-1000-1500-2000-2750.

Upd: The round is finished. We're really sorry for B being well-known (none of the testers knew the harder version of this problem in ABC173E). Still, congratulations to the winners!

Div1 (unofficial):

  1. WZYYN
  2. Geothermal
  3. kort0n
  4. neal
  5. kotatsugame

Div2:

  1. JSoap
  2. DemolitionLovers
  3. killyou
  4. gmh77
  5. SkyStar

Upd: Editorial is out here.

Полный текст и комментарии »

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