USACO Bronze 2016 January - Subsequences Summing to Sevens

Author: thetazero

Official Analysis

C++

Implementation

#include <bits/stdc++.h>
using namespace std;
int main(){
freopen("div7.in", "r", stdin);
freopen("div7.out", "w", stdout);
int n;
cin >> n;
vector<int> pref(n+1);

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!