摘要: Description You are given positive integer number n. You should create such strictly increasing sequence of k positive numbersa1, a2, ..., ak, that th 阅读全文
posted @ 2017-05-01 20:07 樱花落舞 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Description You are given the array of integer numbers a0, a1, ..., an - 1. For each element find the distance to the nearest zero (to the element whi 阅读全文
posted @ 2017-05-01 19:53 樱花落舞 阅读(372) 评论(0) 推荐(0) 编辑
摘要: Description You are given matrix with n rows and n columns filled with zeroes. You should put k ones in it in such a way that the resulting matrix is 阅读全文
posted @ 2017-05-01 19:44 樱花落舞 阅读(251) 评论(0) 推荐(0) 编辑