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

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);
}
(Visited 123 times, 1 visits today)

About the Author:

Leave A Comment