#include #include #include #include #include using namespace std; void maxi(vector &arr){ int maxi = arr[0]; int index = 0; for(int i=1; imaxi){ maxi = arr[i]; index = i; } } cout << index << endl; } int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n; cin >> n; vector type(6, 0); for(int i=0; i> tmp; type[tmp]++; } maxi(type); return 0; }