Code for USACO practice problems
cpp
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

12 lines
176 B

#include <iostream>
using namespace std;
int main() {
int n[7];
for (int i = 0; i < 7; i++) {
int j;
cin >> j;
n[i] = j;
sort(n, 7, greater<int>());
}
}