摘要:
Description Find an n × n matrix with different numbers from 1 to n2, so the sum in each row, column and both main diagonals are odd. Input The only l 阅读全文
摘要:
Description You are given n points on a line with their coordinates xi. Find the point x so the sum of distances to the given points is minimal. Descr 阅读全文
摘要:
Description he only king stands on the standard chess board. You are given his position in format "cd", where c is the column from 'a' to 'h' and d is 阅读全文