SMU Summer 2023 Contest Round 5 Solutions
A. Points in Segments
An approach with a time complextiy of $ \mathcal{O}(n \times m) $ works well for small data ranges. The idea is to mark each point within the given intervals and then count how many points are not marked.
#include <bits/stdc++.h>
#define int long long
using namespace std;
signed main() {
ios::sync_with_stdio(f ...
Posted on Sat, 01 Aug 2026 16:53:59 +0000 by minus4