USACO Bronze 2016 January - Promotion Counting

Author: Danh Ta Chi Thanh

Official Analysis (Java)

C++

Implementation

#include <iostream>
#include <cstdio>
using namespace std;
int main(){
// initialize file I/O
ios_base::sync_with_stdio(0); cin.tie(0); // see Fast Input & Output
freopen("promote.in","r",stdin);
freopen("promote.out","w",stdout);

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!