USACO Bronze 2016 January - Promotion Counting

Authors: Danh Ta Chi Thanh, Lin Jiang, Neo Wang

Official Analysis (Java)

Video Solution

By Neo Wang

Video Solution Code

Implementation

#include <cstdio>
#include <iostream>
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!