牛客周赛 Round 51 A-小红的同余_牛客周赛 Round 51 (nowcoder.com) 分类讨论: 只要 x x x是奇数,我们就让 x + 1 x+1 x+1就可以得到 ( x + 1 ) m o d x (x+1)modx