Harmony Pairs(數位 dp)

Harmony Pairs 題目描述 Roundgod is obsessive about numbers. Let S ( x ) S(x) S(x) be the sum of the digits of xx in decimal notation, ( A , B ) (A,B) (A,B) is a harmony pair if and only if S ( A ) > S ( B
相關文章
相關標籤/搜索