#include <iostream> using namespace std; int main() { int arr[11] = {0}; int temp; while (cin >> temp) arr[temp]++; int maxNum = -1, index; for (int i = 1; i <= 10; i++) { if (arr[i] > maxNum) { maxNum = arr[i]; index = i; } } cout << index << endl; } // 64 位输出请用 printf("%lld")
qd