/* * @(#) msu95_a.c - Problem 'A' ("The warehouse robot") solution * of the ACM Programming Contest at the MSU in 1995. * (c) 1997 Ivan Maidanski http://ivmai.chat.ru * Freeware program source. All rights reserved. ** * Language: ANSI C * Tested with: Borland C++ v3.1 * Last modified: 1997-10-24 18:35:00 GMT+04:00 */ /* Input data file: a.dat */ #include int n; int x[26],y[26]; int height(int i) { int k,h; for (k=h=0;kh;j--) for (k=0;k