CCF CSP201709-2公共钥匙和 stl #include<iostream> #include<algorithm> #include<vector> using namespace std; struct Key{ int time,sno; bool flag; }; vector<Key>key; bool cmp(Key a,Key b){ if(a.time == b.time){ if(a.flag == b.flag){ return a.sno