Mirko works on a pig farm that consists of M locked pig-houses and Mirko can’t unlock any pighouse because he doesn’t have the keys. Customers come to the f...
PAT 1105 Spiral Matrix(25) This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix is fil...
PAT 1036.Boys vs Girls(25) This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the fe...
PAT 1003.Emergency(25) As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connec...