摘要: Medicine faculty of Berland State University has just finished their admission campaign. As usual, about 80% of applicants are gi... 阅读全文
posted @ 2018-08-19 20:01 i-Curve 阅读(248) 评论(0) 推荐(0) 编辑
摘要: You have n sticks of the given lengths.Your task is to choose exactly four of them in such a way that they can form a rectangle. ... 阅读全文
posted @ 2018-08-19 14:04 i-Curve 阅读(175) 评论(0) 推荐(0) 编辑
摘要: You are given a chessboard of size n×n. It is filled with numbers from 1 to n2 in the following way: the first ⌈n22⌉ numbers from... 阅读全文
posted @ 2018-08-19 13:51 i-Curve 阅读(191) 评论(0) 推荐(0) 编辑
摘要: You are given a string s consisting of n lowercase Latin letters. n is even.For each position i (1≤i≤n) in string s you are requi... 阅读全文
posted @ 2018-08-19 13:27 i-Curve 阅读(177) 评论(0) 推荐(0) 编辑