随笔分类 -  数据结构

摘要:注意不能按id去重!只能id,val同时相同时才能去重!! struct node { int id, val; bool operator<(const node &x) const { if (x.id == id&&x.val==val) return 0; if (x.val == val) 阅读全文
posted @ 2018-08-15 21:45 planche 阅读(170) 评论(0) 推荐(0)