Untitled

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

int main()
{
	int a, b, c, n, х=0 ,y=0;
	cin >> n;
	for (int i = 0; i < n; i++) {
		cout << "storoni" << "\n";
		cin >> a >> b >> c;

		if (a + b == c) {
			х += a + b + c;
		}
		else {
			y += a + b + c;
		}
	}
	if (х > y) {
			cout << "win virozhdennie";
	}

	else {
		cout << "win pravilnie";
	}
}
Leave a Comment