linkkk
题意: 思路:用
v
e
c
t
o
r
<
i
n
t
>
v
vector
class TopVotedCandidate { public: vectorv,tt; map mp; TopVotedCandidate(vector & persons, vector & times) { int n=persons.size(); int maxx=0,pos=5100; for(int i=0;i =maxx){ maxx=mp[persons[i]]; pos=persons[i]; } v.push_back(pos); // cout< 欢迎分享,转载请注明来源:内存溢出
评论列表(0条)