atcoder_official's blog

By atcoder_official, history, 7 months ago, In English

We will hold Polaris.AI Programming Contest 2026(AtCoder Beginner Contest 457).

We are looking forward to your participation!

  • Vote: I like it
  • -121
  • Vote: I do not like it

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

I hope I get high score

unsigned __int128_t score = -1;

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

excited

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

Hope to solve A to D , thanks

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

glhf

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

I'll try opening problems in order EDCBAFG this time. Hope I'll succeed!

»
7 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it
while(true){
           rp++;
}
»
7 months ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

What a buggy E!

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

solved upto $$$E$$$ in 40 min, stared at $$$F$$$ for the rest. good round.

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

So why is there a problem that was released just two months ago that is exactly the same as today's task G? Even the problem names are almost the same.

Simply copy and paste the code, delete the specific solution output, and you'll get AC.

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

Finally I solved problem F

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

G is a Joke.

»
7 months ago, hide # |
← Rev. 2  
Vote: I like it 0 Vote: I do not like it

I couldn't understand E at first and I also tried to solve F, but I failed.Only ABCD……

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

I have a very good solution to problem F. Consider working backwards. d_n-1 is always 1. Consider the newly introduced i. i has only two possibilities: maximum or second largest. If it's neither maximum nor second largest, let dp_k represent the distance k between the maximum value and i. If i is the maximum, dp_0 += dp_di-1. If i is the second largest, dp_di += dp[di — 1]. If neither is true, choose any value and sum them up: dp_k+1 = dp_k * (n-i-1). Then, by maintaining the offset, we can optimize the problem from O(n^2) to O(n).

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

Problem G is almost the same as the one from POI 1998.

»
7 months ago, hide # |
← Rev. 2  
Vote: I like it 0 Vote: I do not like it

joke

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

Did anyone use a RMQ data structure for E?

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

Joke contest.G is as same as [NordicOI 2026] Catching Apples and E is dirty

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

I hope I can solve E one day