Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _USE_MATH_DEFINES
- #include <iostream>
- #include <conio.h>
- #include <string>
- #include <set>
- #include <map>
- #include <algorithm>
- #include <string>
- #include <math.h>
- #include <vector>
- #include <cmath>
- using namespace std;
- int main()
- {
- unsigned long long n, m, sc=0, sum=0, i;
- bool what = false;
- cin >> n >> m;
- for(i=1;i<=m;i++)
- {
- cin >> sc;
- sum += sc;
- if (sum > n*3)
- {
- what = true;
- cout << "Free after " << i << " times.";
- break;
- }
- }
- if (what == false)
- cout << "Team.GOV!";
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment