USACO Bronze 2012 January - Haybale Stacking

Author: Óscar Garries

Official Analysis

C++

Implementation

#include <bits/stdc++.h>
using namespace std;
int main () {
int n, k;
cin >> n >> k;
vector<int> diff(n + 1);
for (int i = 0; i < k; i++) {
int l, r;

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!