摘要:
class Solution { public: vector<vector<int>> groupThePeople(vector<int>& groupSizes) { map<int, vector<int> > m;//每个size组包含的元素 set<int> s;//记录用户组的size 阅读全文
posted @ 2019-12-09 10:12
Joel_Wang
阅读(339)
评论(0)
推荐(0)
摘要:
class Solution { public: int subtractProductAndSum(int n) { int add=0; int prod=1; while(n>0){ int r=n%10; n/=10; prod*=r; add+=r; } int res=prod-add; 阅读全文
posted @ 2019-12-09 10:10
Joel_Wang
阅读(226)
评论(0)
推荐(0)

浙公网安备 33010602011771号