Contest Solutions: Henan Newbie League 2024 Round 5
A – Calendar Game
Ignoring the year, the losing positions follow the pattern (month + day) % 2 == 1, except for the two special dates 9/30 and 11/30 which allow the next player to flip the parity.
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t; cin >> t;
...
Posted on Thu, 07 May 2026 16:47:06 +0000 by stuart7398