USACO Silver 2018 January - Rental Service

Author: Óscar Garries

Official Analysis

C++

C++ Implementation

1#include <bits/stdc++.h>
2
3using namespace std;
4using ll = long long;
5
6bool cmp (const pair<int, int>& a, const pair<int, int>& b) {
7 return a.first > b.first;
8}
9int main() {
10 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!

Give Us Feedback on USACO Silver 2018 January - Rental Service!