USACO Bronze 2016 January - Subsequences Summing to Sevens

Author: Óscar Garries

Official Analysis

C++

C++ Implementation

1#include <bits/stdc++.h>
2
3using namespace std;
4
5int main() {
6 freopen("div7.in", "r", stdin);
7 freopen("div7.out", "w", stdout);
8
9 int n;
10 cin >> 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!

Give Us Feedback on USACO Bronze 2016 January - Subsequences Summing to Sevens!