USACO Silver 2018 December - Convention

Author: Qi Wang

Official Analysis

Time Complexity: O(NlogN)\mathcal{O}(N\log N)

Java

//Created by Qi Wang
import java.util.*;
import java.io.*;
public class convention {
static int N;
static int numBus;
static int cap;
static int[] cow;
public static void main(String[] args) throws IOException {

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!