CEOI 2010 - A Huge Tower

Author: Óscar Garries

Official Analysis

C++

Implementation

#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 9;
int main () {
int n, d;
cin >> n >> d;
vector<int> ar(n);

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!