Competitive Programming

Sprague-Grundy Theorem

Ran into this after seeing this 2100 problem https://codeforces.com/contest/2004/problem/E

Resources: