USACO Gold 2015 December - High Card Low Card (Gold)

Author: Qi Wang

Time Complexity: O(N\logN)\mathcal{O}(N\logN)

Official Analysis

Java

import java.util.*;
import java.io.*;
public class highcardgold {
static boolean[] C;
static List<Integer> B = new ArrayList<>();
static List<Integer> F = new ArrayList<>();
static List<Integer> S = new ArrayList<>();
static int N;
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!