USACO Silver 2018 January - Lifeguards

Author: Óscar Garries

Official Analysis

C++

C++ Implementation

1#include <bits/stdc++.h>
2
3using namespace std;
4
5struct Time {
6 int l, r;
7};
8
9bool cmp (const Time& a, const Time& b) {
10 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!

Give Us Feedback on USACO Silver 2018 January - Lifeguards!