Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
347 B
1
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
	int a, b, c, i = 0, j = 0;
	while (1)
	{
		cin >> a >> b >> c;
		if (a + b == c) i++;
		else j++;
		if (a == 0 and b == 0 and c == 0)
		{
			i--;
			break;
		}
	}
	if (j < i) cout << "Nepravilniy WIN";
	else if (j == i) cout << "Nichiya";
	else cout << "Pravilniy WIN";
}
Leave a Comment