[SRM540] RandomColoringDiv2 by Yanzhe Chen