atcoder_official's blog

By atcoder_official, history, 6 weeks ago, In English

We will hold UNICORNProgramming Contest2026(AtCoder Beginner Contest 477).

We are looking forward to your participation!

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

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hopefully I solve A-D this time, goodluck everyone

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

No convolution problems plz

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

No trash round plz.

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Why are all scores "???" on Atcoder

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Why are all the scores for this contest's problems '???'?

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

really want to solve E!!!!

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I hope to answer questions ABCDE 5.

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Good morning

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I can solve D but can't solve C?

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

1

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Is the difficulty of this ABC test really the same as last time? I think it's much harder than the last one.

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Rating this contest is the worst choice I've ever made.

I didn't read C carefully so I try to use KMP to solve the problem.

D struck me 40min and I have no time to write F(a simple Nested Segment Tree).

Hope I can get any ratings.

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

    Can you explain your idea for F?

    • »
      »
      »
      6 weeks ago, hide # ^ |
       
      Vote: I like it -8 Vote: I do not like it

      By using a Nested Segment Tree(2D Segment Tree).

      And then the problem turned to be a model problem.

      • »
        »
        »
        »
        6 weeks ago, hide # ^ |
        ← Rev. 5  
        Vote: I like it -8 Vote: I do not like it

        what is even 2D segment tree I mean could you please explain on how it work in this setting of problem F I'm interest in the idea you share brother,

        Spoiler

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

i took way too long for C :sob:

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

in D, what happens to the color of the square when a tile is placed on it. I mean what is the final color ? couldn't solve it.

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Is it normal to be able to do D but can't do C?

»
6 weeks ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

Easy E,Hard F,Confusing D

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

    Can you please briefly explain your approach for E ? I was stuck :(

    • »
      »
      »
      6 weeks ago, hide # ^ |
      ← Rev. 2  
      Vote: I like it 0 Vote: I do not like it

      This is how I did it:

      Spoiler
»
6 weeks ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

sort queries forces.

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

由中国的吗?

»
6 weeks ago, hide # |
 
Vote: I like it -9 Vote: I do not like it

First NEGATIVE delta

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Can someone explain how to solve D?

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

how to solve F?

  • »
    »
    6 weeks ago, hide # ^ |
    ← Rev. 4  
    Vote: I like it -8 Vote: I do not like it

    Spoiler

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Can someone tell me why my solution for D is WA? Here's my code:

#include <bits/stdc++.h>
using namespace std;
#define int long long
char a[300010];
int b[300010],cnt[300010],n,q;
signed main(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	cin>>n>>q;
	a[0]='a';
	for(int i=1;i<=q;i++){
		int op;
		cin>>op;
		a[i]=a[i-1];
		if(op==1){
			int x;
			cin>>x;
			cnt[x]++;
			if(cnt[x]%2==1) b[x]=i;
		}else{
			char c;
			cin>>c;
			a[i]=c;
		}
	}
	for(int i=1;i<=n;i++){
		if(cnt[i]%2==0) cout<<a[q];
		else cout<<a[b[i]];
	}
	
	return 0;
}
»
5 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Someone, if you solved F, please give me the approach, i have exhausted everything i had to solve that and couldn't progress a bit:(.