摘要: The K−P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are supposed to write a program t 阅读全文
posted @ 2020-08-13 23:13 kalice 阅读(208) 评论(0) 推荐(0)
摘要: It is said that in 2011, there are about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Province. It would help a lot if y 阅读全文
posted @ 2020-08-13 09:37 kalice 阅读(178) 评论(0) 推荐(0)
摘要: 首先构造cmp比较函数或结构体,再用一个vector容器将map转换为vector,最后用sort进行排序。 bool cmp(const pair<string, int> &a, const pair<string, int> &b)//也可以用结构体 { return a.second > b 阅读全文
posted @ 2020-08-13 07:12 kalice 阅读(1493) 评论(0) 推荐(0)