kmjp's blog
id:kmjp
AtCoder ARC #038 : C - 茶碗と豆
このGrundy数のアレンジはいい勉強になりました。 http://arc038.contest.atcoder.jp/tasks/arc038_c