USACO Silver 2018 January - Lifeguards

Author: Óscar Garries

Official Analysis

C++

Implementation

#include <bits/stdc++.h>
using namespace std;
struct Time {
int l, r;
};
bool cmp (const Time& a, const Time& b) {
return a.l < b.l;

Join the USACO Forum!

Stuck on a problem, or don't understand a module? Join the USACO Forum and get help from other competitive programmers!