Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x, y, z, maxx = 0;
- cin >> x >> y >> z;
- if(x!=0 && x!=1){maxx=x/2;}
- else{maxx=-1;}
- if(y>=6 && maxx!=-1){if( (y/6)<maxx ){maxx=y/6;}}
- else{maxx=-1;}
- if(z>=1 && maxx!=-1){if( (z/1)<maxx ){maxx=z/1;}}
- else{maxx=-1;}
- if(maxx==-1){cout << "0";}
- else{cout << maxx;}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement