/* * Solution for NCPC 2013 problem "Vegetables" by Jaap Eldering * Complexity: O(n^3) */ #include #include #include using namespace std; int main() { double T; int n; cin >> T >> n; vector w(n); for(int i=0; i> w[i]; int best = 999; for(int i=0; i=500 ) { cout << "too large: " << best << endl; return 1; } cout << best << endl; return 0; }