stefdasca's blog

By stefdasca, history, 16 months ago, In English

The 2025 edition of the first international junior Olympiad of the year, Info1Cup is starting today with its competition days taking place tomorrow and on Sunday, so let's use this blog to talk about the contest days and their problems after the contest days are over.

You can also write the Codeforces handles of the participants and maybe even predict potential winners or high performers.

After the contest days, let's also discuss the problems here.

Good luck to all participants!

UPD1: Day 1 results are here

UPD2: There will be online mirrors on Kilonova, and they will be available starting on Monday, until Friday evening:

Day 1 Day 2

UPD3: The final results are here, huge congrats to Issatay Ismagzi for his win, representing Kazakhstan! Congratulations to everyone else who won medals and took part in the contest!

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

| Write comment?
»
16 months ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

raduv will win info cup!

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

raduv will win info(1)cup!

»
16 months ago, hide # |
 
Vote: I like it -11 Vote: I do not like it

LucaLucaM will win this year's info(1)cup!!

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

HoriaB will win info1cup!

»
16 months ago, hide # |
 
Vote: I like it -6 Vote: I do not like it

Pekiban will win info(1)cup!

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

Octagons WILL WIN INFO(1)CUP!!

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

HoriaB will win info1cup!!!!

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

Wansur will win

»
16 months ago, hide # |
 
Vote: I like it -24 Vote: I do not like it

tourist will DEMOLISH info cup!

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

rolandpetrean will win info1cup 2025!

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

farkon00 will win infocup2025

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

Fikrat_Asadzadeh, Hasanv, rahidilbayramli, coolboy19521 will win Info(1)Cup! Let's go guys! You are the best!

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

Wansur will win info1cup!

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

rolandpetrean will win info(1) cup

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

ez win for [user:Hasanv][user:rahidilbayramli][user:coolboy19521][user:Fikrat_Asadzadeh]

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

Will there be an online mirror?

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

Hi stefdasca, where/when will be the mirror? Register action not working on site.

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

Baraa-Ahmed will win infocup

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

If_I_lose_it_all will win Info1Cup!

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

Aldk will win Info1Cup!

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

Day1 finished, is leaderboard available?

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

Auto comment: topic has been updated by stefdasca (previous revision, new revision, compare).

»
15 months ago, hide # |
 
Vote: I like it -16 Vote: I do not like it

Lmao Syria did really bad

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

hey kostka you missed this announcement, stefdasca was faster this time.

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

congratulations to the winner with 508 point!!!

Issatay Ismagzi is_i!

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

Where is the leaderboard?

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

How many participants will be awarded?

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

how to solve day2B and day2C

  • »
    »
    15 months ago, hide # ^ |
    Rev. 4  
    Vote: I like it +9 Vote: I do not like it

    For day2B, let's look at the equation:

    a[1] + a[2] + .. + a[K] = N

    Notice that all the elements are divisible by a[1], so N must be divisible by a[1]. Let N = a[1] * x.

    Divide the equation by a[1]:

    1 + a[2] / a[1] + a[3] / a[1] + .. + a[K] / a[1] = N / a[1]

    Let b[i] = a[i+1] / a[1] for i from 1 to K-1.

    b[1] + b[2] + .. + b[K-1] = x-1

    Notice that this equation is the same thing but with different N and smaller K.

    Now let dp[N][K] be the number of ways to make the sum N out of at most K terms.

    We have dp[N][K] = dp[N][K-1] + sum(dp[x-1][K-1]), where x can be any divisor of N, including N.

    Now, notice that we do not need the K dimension, because we need to get the sum of all dp[N][K] (for a fixed N, of course) and we do not care how large K is.

    So we have an even more simplifed recurrence: dp[N] = sum(dp[x-1]), where x is a divisor of N. This can be computed easily using a sieve.

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

Can anyone explain how to solve ModuloSum for 100?

I tried sqrt decomposition by modulos, where for small M I solve using prefix sums and for big M,

for each Ai I find all numbers >= cutoff where floor(Ai / x) changes, then I answer queries using sweep line. Sadly, this works only for 58.

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

    You are doing the right thing, but at sweep line you need to have a DS that solves the prefix queries in O(1). You can use SQRT Decomposition.

    Here is my submission.

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

      Thanks for the answer, aprreciate it.

      Btw, I solved the task yesterday.

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

    I think you can divide the problem into finding the sum in a range of numbers smaller than M and sum of numbers over M to do that you can process queries in offline by sorting the queries in decreasing order of M