Search
 
SCRIPT & CODE EXAMPLE
 

CPP

Bucket and Water Flow codechef solution in c++

#include<iostream>
#define ll long long
#include<vector>
#include<stack>
#include<string>
#include<algorithm>
using namespace std;

void solve()
{
	ll w, x, y, z, total;
	cin >> w >> x >> y >> z;
	total = w + (y * z);
	if (total == x)
	{
		cout << "filled
";
	}
	else if (total > x)
	{
		cout << "overFlow
";
	}
	else
	{
		cout << "Unfilled
";
	}
}

int main()
{
	int t;
	cin >> t;
	while (t--)
	{
		solve();
	}
	return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: int max in c++ 
Cpp :: prevent getting data from data-tooltip-content tippyjs 
Cpp :: c++ uint8_t header 
Cpp :: trie code cpp 
Cpp :: c++ fill two dimensional array 
Cpp :: loop c++ 
Cpp :: sum of first 100 natural numbers 
Cpp :: use of strstr in c++ 
Cpp :: resharper fold if statement 
Cpp :: c++ get data type 
Cpp :: how to traverse through vector pair 
Cpp :: c++ comment out multiple lines 
Cpp :: square gcode 
Cpp :: c++ pass ofstream as argument 
Cpp :: c++ program to convert fahrenheit to celsius 
Cpp :: closing a ifstream file c++ 
Cpp :: assign one vector to another c++ 
Cpp :: how to find factorial of number in c++ 
Cpp :: c++ sorting and keeping track of indexes 
Cpp :: memset in cpp 
Cpp :: c++ concatenate strings 
Cpp :: c++ check first character of string 
Cpp :: raspberry pi mount external hard drive 
Cpp :: remove elements from vector 
Cpp :: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ 
Cpp :: C+++++++++++++++++++++++++++ JAVA 
Cpp :: graph colouring 
Cpp :: Bit Tricks for Competitive Programming c ++ 
Cpp :: error c4001 site:docs.microsoft.com 
Cpp :: how to seek to the start of afile in c++ 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =