Horje
Chef and IPC Certificates codechef solution in c++ Code Example
Chef and IPC Certificates codechef solution in c++
#include<iostream>
using namespace std;

class solution
{
public:
	void solve()
	{
		int  n, m, k, cnt = 0;
		cin >> n >> m >> k;
		for (int i = 0; i < n; i++)
		{
			int* arr = new int[k];
			int sum = 0, q;
			for (int i = 0; i < k; i++)
			{
				cin >> arr[i];
				sum += arr[i];
			}
			cin >> q;

			if (sum >= m && q <= 10)
				cnt++;

			delete[] arr;
		}
		cout << cnt << "\n";
	}
};
int main()
{
  
	solution ss;
	ss.solve();
  
	return 0;
}




Cpp

Related
how to create more than one vector in vector cpp Code Example how to create more than one vector in vector cpp Code Example
comment installer boost c++ sur windows Code Example comment installer boost c++ sur windows Code Example
set keybinding for compiling c++ program in neovim Code Example set keybinding for compiling c++ program in neovim Code Example
const in c++ is same as globle in python Code Example const in c++ is same as globle in python Code Example
glUniform bool Code Example glUniform bool Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8