摘要: Description Katya studies in a fifth grade. Recently her class studied right triangles and the Pythagorean theorem. It appeared, that there are triple 阅读全文
posted @ 2016-08-21 22:53 ljh_2000 阅读(320) 评论(0) 推荐(0) 编辑
摘要: Description Masha wants to open her own bakery and bake muffins in one of the n cities numbered from 1 to n. There are m bidirectional roads, each of 阅读全文
posted @ 2016-08-21 22:35 ljh_2000 阅读(357) 评论(0) 推荐(0) 编辑
摘要: Description Small, but very brave, mouse Brain was not accepted to summer school of young villains. He was upset and decided to postpone his plans of 阅读全文
posted @ 2016-08-21 22:02 ljh_2000 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Description 这里有一个n*m的矩阵,请你选出其中k个子矩阵,使得这个k个子矩阵分值之和最大。注意:选出的k个子矩阵不能相互重叠。 这里有一个n*m的矩阵,请你选出其中k个子矩阵,使得这个k个子矩阵分值之和最大。注意:选出的k个子矩阵不能相互重叠。 Input 第一行为n,m,k(1≤n≤ 阅读全文
posted @ 2016-08-21 21:48 ljh_2000 阅读(1169) 评论(0) 推荐(0) 编辑