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);
}

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);
}

More from author

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related posts

Advertismentspot_img

Latest posts

Is Viral Kitchen Gadgets Worth Your Money Here Is Our Full Review

📢 As an Amazon Associate, I earn from qualifying purchases.There comes a point when you realise that tolerating a frustrating situation is costing you...

We Tested Viral Kitchen Gadgets Here Is What You Must Know

📢 As an Amazon Associate, I earn from qualifying purchases.There comes a point when you realise that tolerating a frustrating situation is costing you...

How old is a 80 pound blue catfish?

Unveiling the Secrets Behind the Age of an 80-Pound Blue Catfish Catching a massive river monster is the ultimate dream for many freshwater anglers across...

Want to stay up to date with the latest news?

We would love to hear from you! Please fill in your details and we will stay in touch. It's that simple!