danx's blog

By danx, history, 6 months ago, In English

Hey Codeforces!

Some of you may have already read my boyfriend Litusiano_ 's post about AddisCoder and JamCoders, but I wanted to share my own experience because these programs are truly wonderful!

This summer I joined AddisCoder in Ethiopia as a Teaching Assistant, a non-profit 4-week program that teaches programming to talented high school students. It was a very valuable experience where I met brilliant and motivated students. I also worked and had fun with amazing TAs from all around the world, and learned a lot about teaching, teamwork, and cultural exchange.

At first, I honestly thought I wouldn’t be accepted, but I decided to apply anyway, and I’m so happy I did! So if you’re hesitating, don’t be afraid to apply.

Everything was safe, well organized, and incredibly fun. We stayed in good accommodations, the local team was super helpful, and exploring Ethiopia’s culture and food was unforgettable. I also had the chance to meet nigus and birsnot, two smart, inspiring and handsome people who also love competitive programming. It would be awesome to see more CPers joining AddisCoder or JamCoders in the future!

Application Info

Both application deadlines are December 31st, though earlier applications are preferred.

Application websites:

The cost of flights, housing, local transportation, and meals are fully covered for both programs. Each is a 5-week commitment, and the exact dates are still to be determined, but they are expected to be:

  • JamCoders: likely June 29 – July 31
  • AddisCoder: likely July 27 – August 22

Thanks for reading, and feel free to reach out if you have any questions!

Full text and comments »

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

By danx, history, 2 years ago, In English

Hello everyone!

Below is the editorial for the informatics division of CAMA along with the solution code to every problem. We have also uploaded PDFs with the editorial both in Spanish and English on our website. The contest can be found on this gym.

The problems were prepared by Esomer, danx, Hectorungo_18, javiergm06 and Rigobertus. We would also like to thank our VIP tester BernatP for his dedication towards the contest.

A. Saving the cinema

Solution
Code

B. Operation

Solution
Code

C. Maximum profit

Solution
Code

D. jbum

Solution
Code

E. Looking for palindromes

Solution
Code

F. Harry Potter in CMS

Solution
Code

G. XOR + Constructive = Love

First of all, we would like to apologize for misjudging the difficulty of this problem. It turned out to be much harder than what we expected.

Solution
Code

H. Menorca's ants

Solution
Code

I. Fake bills

Solution
Code

J. Force Perturbation

Solution
Code

K. Óscar and his battle

Solution
Code

L. Random intervals

Solution
Code

M. The battle of Helm's Deep

Solution
Code

N. The Omer's orange tree

Solution
Code

O. Bea the maximizer

Solution
Code

P. Ski resort

Solution
Code

Full text and comments »

Tutorial of CAMA 2023
  • Vote: I like it
  • +30
  • Vote: I do not like it

By danx, history, 3 years ago, In English

Hello codefoces users.

A while ago, I solved CSES problem 2209 (https://cses.fi/problemset/task/2209) related to combinatorics involving necklaces (https://en.wikipedia.org/wiki/Necklace_(combinatorics)) with a time complexity of O(sqrt(n) + divs(n) * (divs(n) + log(n))). I believe this complexity can be further reduced to O(sqrt(n) + divs(n) * (2^(nOfPrimes(n)) * log(divs(n)) + log(n))).

Upon reading the editorial, I discovered that the official solution utilizes Burnside's Lemma and has a time complexity of O(nlogn). I was unsure if my solution was previously known or not.

After conducting some research, I was unable to find a similar solution to mine. Consequently, I considered using this problem with higher constraints in a future contest. However, I am uncertain whether this is a wise decision. Therefore, I have two questions:

  1. Is there a known solution with a better time complexity for this problem than my approach?
  2. Would it be advisable to incorporate a classical problem with higher constraints into a contest?

Thank you for your assistance.

Full text and comments »

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