USACO Bronze 2016 Open - Diamond Collector

Author: Danh Ta Chi Thanh

Official Analysis (Java)

Implementation

C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <vector>
using namespace std;
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
freopen("diamond.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!