USACO Silver 2018 January - Rental Service

Author: Óscar Garries

Official Analysis

C++

Implementation

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
bool cmp (const pair<int, int>& a, const pair<int, int>& b) {
return a.first > b.first;
}
int main() {
freopen("rental.in", "r", stdin);

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!