sortopponent.begin,opponent.end;#include#include#includeusingnamespacestd;intmain{intN;whilecin>>N&&N{intspeech;vectoryuanzi;vectoropponent;inti;fori=0;i>speech;yuanzi.push_backspeech;}fori=0;i>speech;opponent.push_backspeech;}sortyuanzi.begin,yuanzi.end;sortopponent.begin,opponent.end;intx=0;intys=0,ye=N-1,os=0,oe=N-1;whileysopponent{ye--;x++;}else{ys++;}oe--;}ifx>N/2cout<<"YES"<
龚巍巍2019-12-21 18:21:49
提示您:回答为网友贡献,仅供参考。