Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Comments

DP by O(16n) I'm not sure it's a correct algorithm.

a sudden disappear of round499 rating record?

BinarySearc(h)es

+3

This round makes me realize how poor my math is.TAT.

Er,I think the best solution is O( K*(N+M)+ N*(KlogK)(that is for sort) ) by using BFS.

ahh

emmm

Try to find the minimum distance between every node i and a specific kind of good j,let's make it mind[i][j].all you need to do is run BFS for every j and sort mind[i] out. (maybe some stupid grammar mistakes,forgive me for that,please.)

yeah,that's a interesting take.

yeah,it's seems that there are always some incidents occur when setters forget to do that.

I'll bet for 3:15(UTC+8)

0

almost all problems have a statement??????That's Terribleeeee!