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

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

Note: The contest was moved to Sunday in order to avoid collision with TCO Russia.

AtCoder Grand Contest 004 will be held on Sunday (time). The writer is sugim48.

Contest Link

Contest Announcement

Let's discuss problems after the contest.

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

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

I just notice that the start time will be exactly same with TCO Russia Regional: http://tco16.topcoder.com/regional-events/tco16-russia/

That means Petr (and other people include myself) may not be able to participate.

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

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

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

Reminder that the Contest starts in < 5 hrs.

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

How to solve F (both for tree and not)?

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

enot got 2200 in F while others got only 1500. Is this a bug?

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

http://pastebin.com/pWvL9CzW

Problem B. Fails for test cases 13 onwards. Please provide test cases where this fails.

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

wow, no AC submissions D:

can anybody point out what i did wrong in these codes?

A: https://ideone.com/LaCRZi if even, we can divide them into equal parts, else the answer is minimum of a*b, a*c, b*c (i derived this formula)

B: https://ideone.com/L5wdSL

first find the slime tht has minimum energy to catch (call the energy mn), basically all other slimes can be catched with either a[i], or mn+x, then just sum the numbers

C: https://ideone.com/whuoRY

BFS, backtrack, then mark all used path nodes visited, BFS again...

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

rng_58, can you please increase the stack size for Java? And probably also for Scala and Kotlin.

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

In the editorial of B:

"if K = 2 and you need a slime of color 3, there are 3 ways to get it"

Why isn't just capturing a slime of color 3 a way? We can capture it without shifting anything! The editorial and problem statement isn't clear to me. Can someone please explain?

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

Hi!

Does someone have an idea why this is wrong on A ? http://pastebin.com/n5eZuxUq I spent 1h trying to figure out lol

I am not sure about the unsigned long long type but I don't see why it would be a problem

Thanks.

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

Can anybody give example why greedy aproach doesn't work in D? I sorted all vertices by heights and then updated those vertices with depth more than K and updated children corresponding to the vertex..Link to my solution