Codeforces Round #386 (Div. 2), problem: (A) Compote Solution in C/C++

By | 2017-04-07T22:11:46+00:00 January 6th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

Codeforces Round #386 (Div. 2), problem: (A) Compote Solution in C/C++ #include<stdio.h> int main() { int a,b,c,i; scanf("%d%d%d",&a,&b,&c); for(i=a;i>=1;i--) if(b>=2*i&&c>=4*i) break; printf("%d",7*i); }