摘要: You are given an integer array of length nn. You have to choose some subsequence of this array of maximum length such that this subsequence forms a in 阅读全文
posted @ 2018-05-07 22:50 天之道,利而不害 阅读(859) 评论(0) 推荐(0) 编辑
摘要: Polycarp likes to play with numbers. He takes some integer number xx, writes it down on the board, and then performs with it n−1n−1 operations of the 阅读全文
posted @ 2018-05-07 20:56 天之道,利而不害 阅读(781) 评论(0) 推荐(0) 编辑
摘要: You are given an undirected graph consisting of nn vertices and mm edges. Your task is to find the number of connected components which are cycles. He 阅读全文
posted @ 2018-05-07 13:00 天之道,利而不害 阅读(403) 评论(0) 推荐(0) 编辑