USACO Bronze 2017 January - Cow Tipping

Author: Maggie Liu

Official Analysis

C++

Implementation

#include <iostream>
#include <cstdio>
using namespace std;
int flip(int i, int j);
bool cows[10][10]; //true is tipped, false is upright
int main()
{
freopen("cowtip.in", "r", stdin);
freopen("cowtip.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!