Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
507 B
2
Indexable
Never
#include <iostream>
using namespace std;
struct ck {
	char name[5];
	int claz;
	char bclaz;
	float sa;
};



int main()
{

	ck ck1;
	cin >> ck1.name >> ck1.claz >> ck1.bclaz >> ck1.sa;
	ck ck2;
	cin >> ck2.name >> ck2.claz >> ck2.bclaz >> ck2.sa;
	ck ck3;
	cin >> ck3.name >> ck3.claz >> ck3.bclaz >> ck3.sa;
	if (ck1.sa > ck2.sa && ck1.sa > ck3.sa)cout << ck1.name;
	if (ck2.sa > ck3.sa && ck2.sa > ck1.sa)cout << ck2.name;
	if (ck3.sa > ck1.sa && ck3.sa > ck2.sa)cout << ck3.name;
}