MojaCoder
Playground
Problems
Post Problem
Contests
Create Contest
EN
JA
Sign up
Sign in
MojaCoder will discontinue its service and shut down the judging system on December 31, 2026.
Yet Another Min Nim
2 secs
1024 MB
tatyam
Tweet
Problem
Submissions
Test cases
Editorial
実験をしていくと,
N
N
N
の偶奇
1
1
1
の個数の偶奇
1
1
1
を取り除いた時の最小の数の偶奇
が一致しているとき後手勝ちになることが分かります.
ecottea さんの提出
のはじめの方をご覧ください
正しく解いていただいた ecottea さんに感謝 🙏