perogram

hackerrank

Bananas Multiplier (Easy/Hard)

Quiz https://www.hackerrank.com/contests/yfkpo3-2/challenges/bananas-multiplier-easy https://www.hackerrank.com/contests/yfkpo3-2/challenges/bananas-multiplier-hard (hardも通る)解法 (0-indexedとする) 頂点0からの最短距離(辺の本数)を各頂点…

grundy数を初めて使ってみた Day 1: Game of Stones

Quiz https://www.hackerrank.com/contests/5-days-of-game-theory/challenges/a-game-of-stones/problem Submit https://www.hackerrank.com/contests/5-days-of-game-theory/challenges/a-game-of-stones/submissions/code/1314174009 grundy数とは https:…