Untitled
unknown
plain_text
a year ago
306 B
2
Indexable
Never
#include <iostream> using namespace std; int main() { int count, a=0, b=0; cin >> count; for (int i =0; i < count; i++) { int money; cin >> money; if (money == 1) a++; if (money == 0) b++; } if (a > b) cout << b; if (a < b) cout << a; }