Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- long long a, b, n;
- cin >> a >> n;
- a*=3;
- long long s = 0;
- for(int i=0; i<n; i++)
- {
- cin >> b;
- s += b;
- if(s > a)
- {
- cout << "Free after " << i+1 << " times." << endl;
- return 0;
- }
- }
- cout << "Team.GOV!" << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment