Table of Contents
Edit on GithubJOI 2014 - Secret
Author: Andi Qu
1#include "secret.h"23int prefix[1000][1000], n;45void populate(int L, int R, int A[]) {6 int mid = (L + R) / 2;7 prefix[mid][mid] = A[mid];8 prefix[mid + 1][mid + 1] = A[mid + 1];910 for (int i = mid + 2; i <= R; i++)
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!