Untitled
unknown
plain_text
2 years ago
422 B
2
Indexable
#include <iostream> #include <algorithm> #include <vector> using namespace std; float голосованые(int a,int b,int c) { int h = 0; if (a == 1) h += 1; if (b == 1) h += 1; if (c == 1) h += 1; if (h >= 2) return 1; else if (h < 2) return 0; } int main() { float a, b, c; cin >> a >> b >> c; if (голосованые(a, b, c)) { cout << "1 pobedil"; } else cout << "0 pobedil"; }
Editor is loading...