https://i0.wp.com/eblogarithm.com/wp-content/uploads/2017/01/Codeforces-Round-386-Div-2-problem-A-Compote-Solution-in-CC1.png?fit=640%2C360

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 106 times, 1 visits today)



There are no comments

Add yours

Leave a Reply

%d bloggers like this: