Solutions for ACGO Contest #13 Problems

T1 - Meteor Shower Era Approach Follow a direct simulation logic: Determine the first year the observer sees a meteor: (E + B) % 50. If this age exceeds the lifespan L, output 0. Otherwise, calculate the remaining years L - first_year and divide by the cycle length 50, adding 1 for the first sighting. C++ Implementation #include <bits/stdc ...

Posted on Sun, 10 May 2026 10:38:42 +0000 by zzman

Competitive Programming Weekly Solutions: Winter Algorithm Training Contests

2024 Nowcoder Winter Algorithm Training Camp 4 A - Lemon Soda Check if the first value is at least k times the second value. Complexity: O(1) #include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int x, y, factor; cin >> x >> y >&gt ...

Posted on Fri, 08 May 2026 03:23:40 +0000 by bigphpn00b