/* * @(#) msu95_e.c - Problem 'E' ("Map of characters") solution * of the ACM Programming Contest at the MSU in 1995. * (c) 1998 Ivan Maidanski http://ivmai.chat.ru * Freeware program source. All rights reserved. ** * Language: ANSI C * Tested with: Borland C++ v3.1 * Last modified: 1998-04-04 13:35:00 GMT+04:00 */ /* Input data file: e.dat */ #include /* FILE, EOF, fopen(), fscanf(), printf() */ int n; char c; char a[20][20]; int count(int i, int j) { return i>=0 && j>=0 && i0 && n<=20) { for (i=0;ibs) { bc=c; bs=s; } printf(" %c: %d\n",bc,bs); } return 0; }