Untitled
unknown
plain_text
3 years ago
694 B
7
Indexable
#include <iostream>
#include <cmath>
#include <string>
#include <vector>
using namespace std;
struct gnom{
int rost;
int age;
char pol;
};
int main()
{
cout << "chenchini g muchiki m";
gnom gnom1;
cin>>gnom1.rost>> gnom1.age>> gnom1.pol;
gnom gnom2;
cin >> gnom2.rost >> gnom2.age >> gnom2.pol;
gnom gnom3;
cin >> gnom3.rost >> gnom3.age >> gnom3.pol;
int f = 0;
int m =0;
if (gnom1.pol == 'g') f++;
else m++;
if (gnom2.pol == 'g') f++;
else m++;
if (gnom3.pol == 'g') f++;
else m++;
if (f > m) {
cout << "phemki";
return 0;
}
if (f < m) {
cout << "patriarh kirill";
return 0;
}
else cout << "liberalizm";
}Editor is loading...