SMU Summer 2023 Contest Round 3 Solutions

A. Curriculum Vitae The problem requires finding the longest subsequence where digit 1 is never followed by digit 0. This is equivalent to finding the longest non-decreasing subsequence in a binary sequence. An alternative approach uses prefix sums to count zeros and suffix sums to count ones. #include <bits/stdc++.h> #define endl '\n' # ...

Posted on Tue, 30 Jun 2026 18:04:49 +0000 by daz1034

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