Codeforces 746A. Compote Solution
Solve in C++:
- ///**********ALLAH IS ALMIGHTY************///
- ///AH Tonmoy
- ///Department of CSE
- ///Islamic University,Bangladesh
- #include<iostream>
- using namespace std;
- int main()
- {
- int a,b,c,s;
- while(cin>>a>>b>>c)
- {
- s=min(a,min(b/2,c/4));
- cout<<1*s+2*s+4*s<<endl;
- }
- }
No comments