func_code_string: #include <bits/stdc++.h>   using namespace std;   int n, m, ans;   int r, c;   char mp[201][201];   int ma[201][201];   int mac[201][201];   int main() {     scanf( %d%d , &n, &m);     for (int i = 0; i < n; i++) {       char s[101];       scanf( %s , &s);       for (int j = 0; j < n; j++) {         mp[i][j] = s[j];       }       getchar();     }     for (int i = 0; i < n; i++) {       for (int j = 0; j < n; j++) {         if (mp[i][j] ==  # ) continue;         int flg1 = 0, flg2 = 0;         for (int kk = 0; kk < m; kk++) {           if (mp[i][j + kk] !=  . ) flg2 = 1;           if (mp[i + kk][j] !=  . ) flg1 = 1;         }         if (flg2 == 0) {           for (int kk = 0; kk < m; kk++) {             if (kk + j < n) ma[i][j + kk]++;             if (ma[i][j + kk] > ans) {               ans = ma[i][j + kk];               r = i;               c = j + kk;             }           }         }         if (flg1 == 0) {           for (int kk = 0; kk < m; kk++) {             if (i + kk < n) ma[i + kk][j]++;             if (ma[i + kk][j] > ans) {               ans = ma[i + kk][j];               r = i + kk;               c = j;             }           }         }       }     }     printf( %d %d , r + 1, c + 1);     return 0;   }   