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

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

We will hold AtCoder Beginner Contest 475.

We are looking forward to your participation!

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

»
5 недель назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

gl&hf

»
5 недель назад, скрыть # |
← Rev. 3  
Проголосовать: нравится +3 Проголосовать: не нравится

Hope I can solve 4 problems and get >=800 perf


UPD: I solved 3 problems, and got 1139 perf

»
5 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I hope I can solve 6 problems at least and get 2000+ perf,please

»
5 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I hope to answer 5 questions A, B, C, D, and E

»
4 недели назад, скрыть # |
 
Проголосовать: нравится -10 Проголосовать: не нравится

NOW, MY RANKING IS 915TH!!!

»
4 недели назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I solved A, B, D in 40 mins

»
4 недели назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

I solved A,B,C,D!!!!I solved D for the first time!!!!

Good luck to everyone!

»
4 недели назад, скрыть # |
 
Проголосовать: нравится -10 Проголосовать: не нравится

I cannot laugh again because I just only solve ABCD

»
4 недели назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Nice contest but I couldn't solve G on time.

»
4 недели назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится

I'll post EFG here.

E

Notice $$$K \le 200$$$, and answer can be only o or x, so a 01trie is expected.

Then we found that $$$O(QK)$$$ is reasonable to pass, so just brute forcce and modify the trie each time, and maintain the subtree-size fo querying rank.

There's a trap that one can pass if he got atleast an o.

F

Classical $$$HW \le 2 \times 10^5$$$, so let's come up with an $$$O(H^2 W)$$$ algo.(assume $$$H \le W$$$)

Let's brute force the up and down border, and count the valid left and right border. So to make sure we don't count sth twice, we'll make sure that all the borders have a ..

Then we find out that it's hard to count for up and down border, but we see that counting it inversed is just simple, so let's use the inclusion-exclusion principle, and that's ok.

G

Magically easy. Just brute force like we're searching for the maximum number of divisors in a given range.(prefix.) How about that $$$D$$$?

Well, it's simple, just select a prime factor and force its exponent to be less than $$$D$$$'s. If then, ignore this prime factor when we're enumerating the next exponent.

Sorry for bad English.

»
4 недели назад, скрыть # |
← Rev. 3  
Проголосовать: нравится +3 Проголосовать: не нравится

trashABC abcd is easy but e is hard e>>>d

»
4 недели назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Was C harder than D?

»
4 недели назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Solved $$$A, B, C, D$$$ but too many penalties and $$$E$$$ is too hard :(

»
4 недели назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How can I solve E with 01-Trie?

»
4 недели назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hello

I solve problem C without correction :)

Can you please translate the editorial in english ?

»
4 недели назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

how much you want to overkill D ? me: yes.

EDIT: i just read the editorial for D and realized my approach was the inteded.. WHAT how is segmented sieve easier than brute forcing like this ?

also if anybody was wondering, here is the solution in O(N) for C with the two pointer mentioned in the editorial.