"Thinking": Need to use handwriting. As at a glance.
"AC Code":
#include <iostream> #include <algorithm> #include <iomanip> #include <cstdio> #include < cstring>using namespace std; #define MAX 20+2int Test[max][max];char str[max][max];int cnt[max];int Main () {//freopen ("In.txt", "R", stdin);//freopen ("OUT.txt", "w", stdout); int n = 0, i = 0, j = 0;//inputcin >> n;if (2 = = N) {cout &L t;< 1 << "" << 2;return 0;} for (i = 0, i < n; i++) {for (j = 0; J < N; j + +) cin >> test[i][j];} Transfor (i = 0; i < n; i++) {for (j = 0; J < N; j + +) {Str[i][j] = test[i][j]+ ' 0 ';} STR[I][J] = ' + ';} Cntfor (i = 0; i < n; i++) {for (j = 0; J < N; j + +) {if (!strcmp (Str[i], str[j]) cnt[i]++;}} Outputint max =-1, pos = -1;for (i = 0; i < n; i++) {if (Cnt[i] > max) {max = cnt[i];p os = i;}} for (i = 0; i < n; i++) if (' 1 ' = = Str[pos][i]) cout << i+1<< "";}
Blue Bridge Cup basic 23 chip test (base, statistic, array)